Skip to content

Instantly share code, notes, and snippets.

View mrmyroll2's full-sized avatar
🎯
Focusing

Amierul Basyar Yusoff mrmyroll2

🎯
Focusing
View GitHub Profile
BEGIN TRANSACTION;
GO
CREATE TABLE [AspNetRoles] (
[Id] nvarchar(450) NOT NULL,
[Name] nvarchar(256) NULL,
[NormalizedName] nvarchar(256) NULL,
[ConcurrencyStamp] nvarchar(max) NULL,
CONSTRAINT [PK_AspNetRoles] PRIMARY KEY ([Id])
);
@mrmyroll2
mrmyroll2 / generate-migration.ps1
Last active May 6, 2025 04:28
PowerShell script to automate EF Core migration and SQL script generation
<#
.SYNOPSIS
EF Core Migration Automation Script
.DESCRIPTION
Automates:
1. Creating a new EF Core migration
2. Inserting an <auto-generated /> tag into the migration file
3. Generating the corresponding SQL script