public EntityDbContext(DbContextOptions <EntityDbContext> options, IRecordAuthority recordAuthority, IAuditedEntityUpdater auditedEntityUpdater, IEncryptionProvider encryptionProvider = null) : base(options) { Ensure.Any.IsNotNull(recordAuthority, nameof(recordAuthority)); Ensure.Any.IsNotNull(auditedEntityUpdater, nameof(auditedEntityUpdater)); _recordAuthority = recordAuthority; _auditedEntityUpdater = auditedEntityUpdater; _encryptionProvider = encryptionProvider; }
public TransientEntityDbContext(DbContextOptions <EntityDbContext> options, IRecordAuthority recordAuthority, IAuditedEntityUpdater auditedEntityUpdater) : base(options, recordAuthority, auditedEntityUpdater) { }