public MongoDbCommandRepository( MongoDatabase mongoDatabase, ICommandEventHandlers commandEvents, ICommandInterceptors commandInterceptor) : base(commandEvents) { ObjectContext = mongoDatabase; _CommandInterceptors = commandInterceptor; }
public EntityFrameworkCommandRepository( DbContext dbContext, ICommandEventHandlers commandEvents, ICommandInterceptors commandInterceptor) : base(commandEvents) { Check.NotNull(dbContext, "dbContext"); Check.NotNull(commandEvents, "commandEvents"); Check.NotNull(commandInterceptor, "commandInterceptor"); ObjectContext = DbContext = dbContext; _CommandInterceptors = commandInterceptor; }
public InMemoryCommandRepository( ICollection <object> entities, ICommandEventHandlers commandEvents, ICommandInterceptors commandInterceptor) : base(commandEvents) { Check.NotNull(entities, "entities"); Check.NotNull(commandEvents, "commandEvents"); Check.NotNull(commandInterceptor, "commandInterceptor"); ObjectContext = Entities = entities; CommandInterceptors = commandInterceptor; }
public EntityFrameworkCommandRepository( DbContext dbContext, ICommandEventHandlers commandEvents) : this(dbContext, commandEvents, new CommandInterceptors()) { }
public InMemoryCommandRepository(ICollection <object> entities, ICommandEventHandlers commandEvents) : this(entities, commandEvents, new CommandInterceptors()) { }
public InMemoryCommandRepository(ICommandEventHandlers commandEvents) : this(new List <object>(), commandEvents, new CommandInterceptors()) { }
public MongoDbCommandRepository( MongoDatabase mongoDatabase, ICommandEventHandlers commandEvents) : this(mongoDatabase, commandEvents, new CommandInterceptors()) { }
public CommandRepositoryBase(ICommandEventHandlers eventHandlers) { Check.NotNull(eventHandlers, "eventHandlers"); EventHandlers = eventHandlers; }