Ejemplo n.º 1
0
 public EntityDeleterController(IWebAppContext appContext
                                , ISolutionService solutionService
                                , IEntityDeleter entityDeleter
                                )
     : base(appContext, solutionService)
 {
     _entityDeleter = entityDeleter;
 }
Ejemplo n.º 2
0
 protected DbContextBase(
     IExceptionMapper exceptionMapper = null,
     IEntityAdder entityAdder = null,
     IEntityUpdater entityUpdater = null,
     IEntityDeleter entityDeleter = null,
     IEntityDetacher entityDetacher = null)
     : base()
 {
     Init(exceptionMapper, entityAdder, entityUpdater, entityDeleter, entityDetacher);
 }
Ejemplo n.º 3
0
 protected DbContextBase(
     IExceptionMapper exceptionMapper = null,
     IEntityAdder entityAdder         = null,
     IEntityUpdater entityUpdater     = null,
     IEntityDeleter entityDeleter     = null,
     IEntityDetacher entityDetacher   = null)
     : base()
 {
     Init(exceptionMapper, entityAdder, entityUpdater, entityDeleter, entityDetacher);
 }
Ejemplo n.º 4
0
 public DbContextBase(
     string nameOrConnectionString,
     IExceptionMapper exceptionMapper = null,
     IEntityAdder entityAdder         = null,
     IEntityUpdater entityUpdater     = null,
     IEntityDeleter entityDeleter     = null,
     IEntityDetacher entityDetacher   = null)
     : base(nameOrConnectionString)
 {
     Init(exceptionMapper, entityAdder, entityUpdater, entityDeleter, entityDetacher);
 }
Ejemplo n.º 5
0
 public DbContextBase(
     string nameOrConnectionString,
     IExceptionMapper exceptionMapper = null,
     IEntityAdder entityAdder = null,
     IEntityUpdater entityUpdater = null,
     IEntityDeleter entityDeleter = null,
     IEntityDetacher entityDetacher = null)
     : base(nameOrConnectionString)
 {
     Init(exceptionMapper, entityAdder, entityUpdater, entityDeleter, entityDetacher);
 }
Ejemplo n.º 6
0
 public OrdersController(IEntityGetter <Order, OrderItemViewModel> getter,
                         IEntityCollectionGetter <Order, OrderItemViewModel> collectionGetter,
                         IEntityCreator <OrderBindingModel, Order> creator,
                         IEntityUpdater <OrderQuantityBindingModel, Order> updater,
                         IEntityDeleter <Order> deleter)
 {
     _getter           = getter;
     _collectionGetter = collectionGetter;
     _creator          = creator;
     _deleter          = deleter;
     _updater          = updater;
 }
Ejemplo n.º 7
0
 public DbContextBase(
     ObjectContext objectContext,
     bool dbContextOwnsObjectContext,
     IExceptionMapper exceptionMapper = null,
     IEntityAdder entityAdder         = null,
     IEntityUpdater entityUpdater     = null,
     IEntityDeleter entityDeleter     = null,
     IEntityDetacher entityDetacher   = null)
     : base(objectContext, dbContextOwnsObjectContext)
 {
     Init(exceptionMapper, entityAdder, entityUpdater, entityDeleter, entityDetacher);
 }
Ejemplo n.º 8
0
 public DbContextBase(
     DbConnection existingConnection,
     bool contextOwnsConnection,
     IExceptionMapper exceptionMapper = null,
     IEntityAdder entityAdder         = null,
     IEntityUpdater entityUpdater     = null,
     IEntityDeleter entityDeleter     = null,
     IEntityDetacher entityDetacher   = null)
     : base(existingConnection, contextOwnsConnection)
 {
     Init(exceptionMapper, entityAdder, entityUpdater, entityDeleter, entityDetacher);
 }
Ejemplo n.º 9
0
 public DbContextBase(
     ObjectContext objectContext,
     bool dbContextOwnsObjectContext,
     IExceptionMapper exceptionMapper = null,
     IEntityAdder entityAdder = null,
     IEntityUpdater entityUpdater = null,
     IEntityDeleter entityDeleter = null,
     IEntityDetacher entityDetacher = null)
     : base(objectContext, dbContextOwnsObjectContext)
 {
     Init(exceptionMapper, entityAdder, entityUpdater, entityDeleter, entityDetacher);
 }
Ejemplo n.º 10
0
 public DbContextBase(
     DbConnection existingConnection,
     bool contextOwnsConnection,
     IExceptionMapper exceptionMapper = null,
     IEntityAdder entityAdder = null,
     IEntityUpdater entityUpdater = null,
     IEntityDeleter entityDeleter = null,
     IEntityDetacher entityDetacher = null)
     : base(existingConnection, contextOwnsConnection)
 {
     Init(exceptionMapper, entityAdder, entityUpdater, entityDeleter, entityDetacher);
 }
Ejemplo n.º 11
0
 private void Init(
     IExceptionMapper exceptionMapper,
     IEntityAdder entityAdder,
     IEntityUpdater entityUpdater,
     IEntityDeleter entityDeleter,
     IEntityDetacher entityDetacher)
 {
     SetExceptionMapper(exceptionMapper);
     SetEntityAdder(entityAdder);
     SetEntityUpdater(entityUpdater);
     SetEntityDeleter(entityDeleter);
     SetEntityDetacher(entityDetacher);
 }
Ejemplo n.º 12
0
 protected virtual void SetEntityDeleter(IEntityDeleter entityDeleter)
 {
     _entityDeleter = entityDeleter ?? new EntityDeleter();
 }
Ejemplo n.º 13
0
 private void Init(
     IExceptionMapper exceptionMapper,
     IEntityAdder entityAdder,
     IEntityUpdater entityUpdater,
     IEntityDeleter entityDeleter,
     IEntityDetacher entityDetacher)
 {
     SetExceptionMapper(exceptionMapper);
     SetEntityAdder(entityAdder);
     SetEntityUpdater(entityUpdater);
     SetEntityDeleter(entityDeleter);
     SetEntityDetacher(entityDetacher);
 }
Ejemplo n.º 14
0
 protected virtual void SetEntityDeleter(IEntityDeleter entityDeleter)
 {
     _entityDeleter = entityDeleter ?? new EntityDeleter();
 }