Alle Neu

user:thomas Gists erstellt von Nutzer

title:mygist Gists mit Titel

filename:myfile.txt Gists mit Dateinamen

extension:yml Gists mit Dateiendung

language:go Gists in Sprache

topic:homelab gists with given topic

Anmelden


Alle Neu Anmelden

emildr

Beigetreten 2 months ago

Neueste erstellt
Älteste erstellt
Neueste bearbeitet
Älteste bearbeitet
Alle Gists 3

emildr / insta_pr_decline_csharp.md

0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 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 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 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 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 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
Neuer Älter

Powered by Opengist ⋅ Load: 51ms⋅

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