public RemovalUserContextedInstruction(DbContext context, RemovalInstructionParams <TId> options, TUserId userId) : base(context, options, x => x.Id.Equals(options.Id) && x.UserId.Equals(userId)) { if (userId == null) { throw new InstructionException("User ID must be provided for the instruction!", HttpStatusCode.BadRequest); } }
public RemovalOptimizedUserContextedInstruction(DbContext context, RemovalInstructionParams <TId> options, TUserId userId) : base(context, options, new TEntity() { Id = options.Id, RowVersion = options.RowVersion, UserId = userId }) { if (userId == null) { throw new InstructionException("User ID must be provided for the instruction!", HttpStatusCode.BadRequest); } }
public RemovalOptimizedInstruction(DbContext context, RemovalInstructionParams <TId> options) { if (options.RowVersion == null) { throw new InstructionException("Row Version must be provided for the instruction!", HttpStatusCode.BadRequest); } this.context = context; this.id = options.Id; this.rowVersion = options.RowVersion; }
protected internal RemovalOptimizedInstruction(DbContext context, RemovalInstructionParams <TId> options, TEntity entity) : this(context, options) { this.entity = entity; }
protected RemovalRecursiveInstruction(DbContext context, RemovalInstructionParams <TId> options, Expression <Func <TEntity, bool> > filterExpr) : this(context, options) { this.filterExpr = filterExpr; }
public RemovalRecursiveInstruction(DbContext context, RemovalInstructionParams <TId> options) { this.context = context; this.id = options.Id; this.filterExpr = x => x.Id.Equals(this.id); }