public OutputStockRepo(IFactoryConnection efc) { IFactoryRepository <OutputStock> efr = new DbContext <OutputStock>(); _conn = efc; _efcmd = efr.FactoryCommand(efc); }
public IntegrationCapeStockApp(IFactoryConnection efc) { _epr = new IntegrationCapeStockRepo(efc); _inputStockApp = new InputStockApp(efc); _outputStockApp = new OutputStockApp(efc); _stockMapper = new StockMapper(); _conn = efc; }
public ItemOutputStockApp(IFactoryConnection efc) { _epr = new ItemOutputStockRepo(efc); _stockManagement = new StockManagement(efc); _stockItemApp = new StockItemApp(efc); _unitMeasureConversionApp = new UnitMeasureConversionApp(efc); Logs = new List <Log>(); }
public UnitMeasureConversionApp(IFactoryConnection efc) { _epr = new UnitMeasureConversionRepo(efc); _unitMeasureApp = new UnitMeasureApp(efc); _stockItemApp = new StockItemApp(efc); _familyApp = new FamilyApp(efc); Logs = new List <Log>(); }
public OsProductApp(IFactoryConnection efc) { _epr = new OsProductRepo(efc); _osApp = new OrderOfServiceApp(efc); _integrationCapeStockApp = new IntegrationCapeStockApp(efc); _integrationItemsStockApp = new IntegrationItemsStockApp(efc); _conn = efc; }
public IntegrationItemsStockApp(IFactoryConnection efc) { _epr = new IntegrationItemsStockRepo(efc); _itemInputStockApp = new ItemInputStockApp(efc); _itemOutputStockApp = new ItemOutputStockApp(efc); _stockMapper = new StockMapper(); _conn = efc; }
public IActionResult Add(Interfaces.Presentacion.Entities.Factory factory) { FactoryCommands factoryCommands = new FactoryCommands(); IFactoryCommand factoryCommand = factoryCommands.CreateFactoryCommand(this.DatabaseEngine); factoryCommand.CreateFactory(factory); return(RedirectToAction("Index", "Factory")); }
// this Update method abstracts away the name of the exact aggregate method that we will be using/calling // this approach allows us to use this single Update method for multiple command messages // this method is where we implement the lifetime management of an Aggregate in one place void Update(IFactoryCommand forAggregateIdentifiedBy, Action<FactoryAggregate> executeCommandUsingThis) { // Load the event stream from the event store using the FactoryId of the passed in command var key = forAggregateIdentifiedBy.Id.ToString(); var eventStream = _eventStore.LoadEventStream(key); // create a new Factory aggregate instance from its history of allEventsRelatedToThisAggregateId var aggregateState = new FactoryState(eventStream.Events); var aggregate = new FactoryAggregate(aggregateState); // execute the delegated Action (lambda that contains a reference to a specific aggregate method call) // that was passed to this Update method by the "When" methods below executeCommandUsingThis(aggregate); // append resulting changes to the aggregate's event stream _eventStore.AppendEventsToStream(key, eventStream.StreamVersion, aggregate.EventsThatHappened); }
// this Update method abstracts away the name of the exact aggregate method that we will be using/calling // this approach allows us to use this single Update method for multiple command messages // this method is where we implement the lifetime management of an Aggregate in one place void Update(IFactoryCommand forAggregateIdentifiedBy, Action <FactoryAggregate> executeCommandUsingThis) { // Load the event stream from the event store using the FactoryId of the passed in command var key = forAggregateIdentifiedBy.Id.ToString(); var eventStream = _eventStore.LoadEventStream(key); // create a new Factory aggregate instance from its history of allEventsRelatedToThisAggregateId var aggregateState = new FactoryState(eventStream.Events); var aggregate = new FactoryAggregate(aggregateState); // execute the delegated Action (lambda that contains a reference to a specific aggregate method call) // that was passed to this Update method by the "When" methods below executeCommandUsingThis(aggregate); // append resulting changes to the aggregate's event stream _eventStore.AppendEventsToStream(key, eventStream.StreamVersion, aggregate.EventsThatHappened); }
public FilterCompanyApp(IFactoryConnection efc) { _epr = new FilterCompanyRepo(efc); }
public VehicleApp(IFactoryConnection efc) { _epr = new VehicleRepo(efc); }
public TranslateApp(IFactoryConnection efc) { _epr = new TranslateRepo(efc); }
public OsServiceApp(IFactoryConnection efc) { _epr = new OsServiceRepo(efc); }
public CboRepo(IFactoryConnection efc) { IFactoryRepository <Cbo> efr = new DbContext <Cbo>(); _efcmd = efr.FactoryCommand(efc); }
public InstallmentOfAccountsReceivableRepo(IFactoryConnection efc) { IFactoryRepository <InstallmentOfAccountsReceivable> efr = new OdbcSqlServer <InstallmentOfAccountsReceivable>(); _efcmd = efr.FactoryCommand(efc); }
public ReligionRepo(IFactoryConnection efc) { IFactoryRepository <Religion> efr = new DbContext <Religion>(); _efcmd = efr.FactoryCommand(efc); }
public TypeDocumentFinancialApp(IFactoryConnection efc) { _epr = new TypeDocumentFinancialRepo(efc); }
public DbTableRepo(IFactoryConnection efc) { IFactoryRepository <DbTable> efr = new DbContext <DbTable>(); _efcmd = efr.FactoryCommand(efc); }
public OsStockApp() { _epr = new OsStockRepo(); }
public VehicleModelVehicleRepo(IFactoryConnection efc) { IFactoryRepository <VehicleModelVehicle> efr = new OdbcSqlServer <VehicleModelVehicle>(); _efcmd = efr.FactoryCommand(efc); }
public TaxationApp(IFactoryConnection efc) { _epr = new TaxationRepo(efc); }
public StateRepo(IFactoryConnection efc) { IFactoryRepository <State> efr = new DbContext <State>(); _efcmd = efr.FactoryCommand(efc); }
public LegalPersonRepo(IFactoryConnection efc) { IFactoryRepository <LegalPerson> efr = new DbContext <LegalPerson>(); _efcmd = efr.FactoryCommand(efc); }
public OsProductRepo(IFactoryConnection efc) { IFactoryRepository <OsProduct> efr = new DbContext <OsProduct>(); _efcmd = efr.FactoryCommand(efc); }
public ChargeLevelApp(IFactoryConnection efc) { _epr = new ChargeLevelRepo(efc); }
public GroupPermissionApp(IFactoryConnection efc) { _epr = new GroupPermissionRepo(efc); }
public ItemInputStockRepo(IFactoryConnection efc) { IFactoryRepository <ItemInputStock> efr = new DbContext <ItemInputStock>(); _efcmd = efr.FactoryCommand(efc); }
public SpecialTaxApp(IFactoryConnection efc) { _epr = new SpecialTaxRepo(efc); }
public UnitMeasureApp(IFactoryConnection efc) { _epr = new UnitMeasureRepo(efc); }
protected void When(IFactoryCommand when) { WhenMessage(when); }
public UnitMeasureConversionRepo(IFactoryConnection efc) { IFactoryRepository <UnitMeasureConversion> efr = new DbContext <UnitMeasureConversion>(); _efcmd = efr.FactoryCommand(efc); }
public UserApp(IFactoryConnection efc) { _epr = new UserRepo(efc); }