ef core自定义默认的迁移表的名称
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
namespace Long.EntityFrameworkCore;
class MyDesignTimeDbContextFactory : IDesignTimeDbContextFactory<ApplicationDbContext>
{
public ApplicationDbContext CreateDbContext(string[] args)
{
DbContextOptionsBuilder<ApplicationDbContext> builder = new();
string connStr =
"Data Source=localhost;Initial Catalog=test31;User ID=sa;Password=xxxxxx;Trust Server Certificate=True";
//
标签:core,自定义,builder,ef,默认,EntityFrameworkCore
From: https://www.cnblogs.com/zhuoss/p/18255888