예제 #1
0
 /// <summary>
 /// Create a new BaseDbContext with the specified connection to the database, the logger factory for all
 /// EF Logs and CQELight EFCoreOptions
 /// </summary>
 /// <param name="options">DbContext options.</param>
 /// <param name="loggerFactory">Logger factory.</param>
 /// <param name="efOptions">CQELight EFCore options</param>
 public BaseDbContext(DbContextOptions options, ILoggerFactory loggerFactory, EFCoreOptions efOptions)
     : base(options)
 {
     this.efOptions     = efOptions;
     this.loggerFactory = loggerFactory;
 }
 public static void ParseEFCoreOptions(EFCoreOptions options)
 {
     DisableLogicalDeletion = options.DisableLogicalDeletion;
 }