Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

lousaibiao lousaibiao

🎯
Focusing
View GitHub Profile
@lousaibiao
lousaibiao / AutoMigration.cs
Created Mar 3, 2020 — forked from lakeman/AutoMigration.cs
Automatic database migration with EF Core 3.0
View AutoMigration.cs
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;