All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated

emildr / insta_pr_decline_csharp.md

0 likes
0 forks
1 files
Last active 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 likes
0 forks
1 files
Last active 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 likes
0 forks
1 files
Last active 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
Newer Older

Powered by Opengist ⋅ Load: 51ms⋅

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