Skip to content

Instantly share code, notes, and snippets.

View lousaibiao's full-sized avatar
🎯
Focusing

lousaibiao lousaibiao

🎯
Focusing
View GitHub Profile
@lousaibiao
lousaibiao / AutoMigration.cs
Created March 3, 2020 01:43 — forked from lakeman/AutoMigration.cs
Automatic database migration with EF Core 3.0
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design.Internal;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Migrations.Design;
using Microsoft.EntityFrameworkCore.Migrations.Operations;
using Microsoft.EntityFrameworkCore.Storage;