This commit is contained in:
2023-07-31 08:50:05 +03:00
parent cca943f37d
commit c5d9ae7b93
49 changed files with 546 additions and 398 deletions
+8 -1
View File
@@ -37,10 +37,17 @@ public class AppDbContextFactory : IDesignTimeDbContextFactory<AppDbContext>
throw new NotSupportedException($"No such provider: [{provider}]");
}
#if DEBUG
builder.EnableSensitiveDataLogging(true);
builder.EnableDetailedErrors(true);
#endif
var db = new AppDbContext(providerEnum, builder.Options);
db.ChangeTracker.AutoDetectChangesEnabled = false;
db.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
return db;
}
}