添加数据库迁移
This commit is contained in:
@@ -45,7 +45,7 @@ namespace QRCodeService
|
||||
services.AddTransient(typeof(IPipelineBehavior<,>), typeof(TransactionBehaviour<,>));
|
||||
|
||||
//EFCore
|
||||
services.AddDbContextPool<AppDbContext>(
|
||||
services.AddDbContext<AppDbContext>(
|
||||
dbContextOptions => dbContextOptions
|
||||
.UseMySql(
|
||||
"server=localhost;user=root;password=root;database=qrcode",
|
||||
|
||||
Reference in New Issue
Block a user