public SupplierRepository(Core.DAL.Interfaces.IConnection <Bank> iBank, Core.DAL.Interfaces.IConnection <Contacts> iContacts, Core.DAL.Interfaces.IConnection <Payment> iPayment, Core.DAL.Interfaces.IConnection <Suppliers> iSuppliers, Core.DAL.Interfaces.IConnection <FunctionSupplierRelation> iSuppliersFunctionsMapping, Core.DAL.Interfaces.IConnection <Functions> iFunctions, Core.DAL.Interfaces.IConnection <UserRelation> iUserRelation) { this.iBank = iBank; this.iContacts = iContacts; this.iPayment = iPayment; this.iSuppliers = iSuppliers; this.iSuppliersFunctionsMapping = iSuppliersFunctionsMapping; this.iFunctions = iFunctions; this.iUserRelation = iUserRelation; this.ClassName = "SupplierRepository"; this.iPayment.SetConnectionStringKey("DapperConnection"); }
public SupplierController(IMasterData <Models.Request.Supplier, int> iMasterData, ILogger iLogger, Core.DAL.Interfaces.IConnection <Bank> iBank, Core.DAL.Interfaces.IConnection <Contacts> iContacts , Core.DAL.Interfaces.IConnection <Payment> iPayment, Core.DAL.Interfaces.IConnection <Suppliers> iSuppliers, Core.DAL.Interfaces.IConnection <FunctionSupplierRelation> iSuppliersFunctionsMapping, Core.DAL.Interfaces.IConnection <Functions> iFunctions, Core.DAL.Interfaces.IConnection <UserRelation> iUserRelation, ISupplier supplier) : base(iMasterData, iLogger, "Supplier") { this.iBank = iBank; this.iContacts = iContacts; this.iPayment = iPayment; this.iSuppliers = iSuppliers; this.iSuppliersFunctionsMapping = iSuppliersFunctionsMapping; this.iFunctions = iFunctions; this.iUserRelation = iUserRelation; this._iLogger = iLogger; this._iSupplierRepository = supplier; }