Entity FrameworkCore(EFCore)使用SqlServer、Mysql和Sqlite
使用工厂方法模式创建抽象工厂类
{
public DbSet<Blog> Blogs { get; set; }
public DbSet<Post> Posts { get; set; }
}```
使用工厂方法模式创建抽象工厂类
{
public DbSet<Blog> Blogs { get; set; }
public DbSet<Post> Posts { get; set; }
}```