全部 新建

user:thomas 由用户创建的 Gists

title:mygist 包含指定标题的 Gists

filename:myfile.txt 包含指定文件名的 Gists

extension:yml 包含指定扩展名的 Gists

language:go 包含指定编程语言的 Gists

topic:homelab 具有给定主题的 Gists

登录


全部 新建 登录

emildr

加入于 2 months ago

最近 创建
最早 创建
最近 更新
最早 更新
所有 Gists 3

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: 85ms⋅

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