public CustomerCommandHandler(
     ArchContext context,
     IDomainNotification notifications,
     EventSourcingContext eventSourcingContext)
     : base(context, eventSourcingContext, notifications)
 {
     _context = context;
     _eventSourcingContext = eventSourcingContext;
 }
Exemple #2
0
 public CommandHandlerBase(
     ArchContext context,
     EventSourcingContext eventSourcingContext,
     IDomainNotification notifications)
 {
     _context              = context;
     _notifications        = notifications;
     _eventSourcingContext = eventSourcingContext;
 }
Exemple #3
0
 public UnitofWork(ArchContext context, CommonContext cContext)
 {
     Database.SetInitializer <ArchContext>(null);
     if (context == null)
     {
         throw new ArgumentException("context is null");
     }
     _context  = context;
     _cContext = cContext;
 }
Exemple #4
0
 public Repository(ArchContext context)
 {
     _context = context;
 }
 public CustomerHandler(ArchContext archContext, IMapper mapper)
 {
     _archContext = archContext;
     _mapper      = mapper;
     var config = new MapperConfiguration(c => c.CreateMap <CreateCustomer, Customer>());
 }
 public UnitOfWork(ArchContext context)
 {
     _context = context;
 }
 public Repository(ArchContext db)
 {
     Db    = db;
     DbSet = Db.Set <TEntity>();
 }
 public CustomerCommandHandler(ArchContext archContext, IMapper mapper)
     : base(archContext, mapper)
 {
     _archContext = archContext;
     _mapper      = mapper;
 }
 public AuthRepository(ArchContext context)
     : base(context)
 {
 }
Exemple #10
0
 public GenericRepository(ArchContext context)
 {
     _context = context;
     _dbSet   = context.Set <TEntity>();
 }
 public CommandHandler(ArchContext archContext, IMapper mapper)
 {
     _archContext = archContext;
     _mapper      = mapper;
 }
 public CustomerQueryHandler(ArchContext archContext, IMapper mapper)
 {
     _archContext = archContext;
     _mapper      = mapper;
 }
Exemple #13
0
 public QueryHandlerBase(ArchContext context)
 {
     _context = context;
 }
Exemple #14
0
 public CustomerRepository(ArchContext context)
     : base(context)
 {
 }
Exemple #15
0
 public CustomerQueryHandler(ArchContext context)
 {
     _context = context;
 }
 public CustomerRepository(ArchContext db) : base(db)
 {
 }