|
@@ -19,6 +19,7 @@
|
|
|
{
|
|
|
//this.Configuration.LazyLoadingEnabled = false;
|
|
|
//this.Database.CommandTimeout = 180;
|
|
|
+ //this.Database.AutoTransactionBehavior = AutoTransactionBehavior.Never;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -30,9 +31,9 @@
|
|
|
// this.Configuration.LazyLoadingEnabled = false;
|
|
|
// this.Database.CommandTimeout = 180;
|
|
|
//}
|
|
|
- public MainDBContext(DbContextOptions options) : base(options)
|
|
|
+ public MainDBContext(DbContextOptions<MainDBContext> options) : base(options)
|
|
|
{
|
|
|
-
|
|
|
+ //this.Database.AutoTransactionBehavior = AutoTransactionBehavior.Never;
|
|
|
}
|
|
|
|
|
|
// 針對您要包含在模型中的每種實體類型新增 DbSet。如需有關設定和使用
|