全部 新建

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

topic:homelab gists with given topic

登錄


全部 新建 登錄

所有 Gists

倒序排序 創建
順序排序 創建
倒序排序 更新
順序排序 更新

emildr / insta_pr_decline_csharp.md

0 喜歡
0 分支
1 檔案
最後活躍 2 weeks ago

Instant PR decline reasons

N+1 Queries

Always query all data you need before executing anything.

Incorrect:

foreach (var id in itemIds)
{

emildr / EF Core Cheatsheet

0 喜歡
0 分支
1 檔案
最後活躍 2 months ago
dotnet ef
1 # Creates a new migration
2 dotnet ef migrations add MigrationName --project "../Domain/Domain.csproj"
3
4 # Runs the migrations
5 dotnet ef database update --project "../Domain/Domain.csproj"
6
7 # Creates a SQL command that matches the migration
8 dotnet ef migrations script ---project "../Domain/Domain.csproj"
9
10 # Checks for pending model changes

emildr / Azure MSSQL User Creation

0 喜歡
0 分支
1 檔案
最後活躍 2 months ago
Creates a user with permissions
azure mssql
1 DECLARE @user NVARCHAR(100) = N'your-resource-group-or-email';
2
3 CREATE USER [@user] FROM EXTERNAL PROVIDER;
4 ALTER ROLE db_datareader ADD MEMBER [@user];
5 ALTER ROLE db_datawriter ADD MEMBER [@user];
6 ALTER ROLE db_ddladmin ADD MEMBER [@user];
7 GO
上一頁 下一頁

由 Opengist 提供支持 ⋅ Load: 47ms⋅

繁體中文
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文