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;
        }
Example #2
0
 public TransientEntityDbContext(DbContextOptions <EntityDbContext> options, IRecordAuthority recordAuthority, IAuditedEntityUpdater auditedEntityUpdater)
     : base(options, recordAuthority, auditedEntityUpdater)
 {
 }