public CreateAccountDAOs(ICreateAccountDAO createAccountDAO, ICreateAccountDAO createMappingDAO, ICreateAccountDAO createUserDAO, IMapperDAO mapperDAO) { CreateAccountDAO = createAccountDAO; CreateMappingDAO = createMappingDAO; CreateUserDAO = createUserDAO; MapperDAO = mapperDAO; }
/// <summary> /// Service that crafts queries for inserting a new row in the account table for new account /// </summary> /// <param name="newAccount"></param> public SqlCreateAccountService(CreateAccountDAOs daos) { newAccountDAO = daos.CreateAccountDAO; newMappingDAO = daos.CreateMappingDAO; mapperDAO = daos.MapperDAO; newUserDAO = daos.CreateUserDAO; }
/// <summary> /// Service that crafts queries for inserting multiple rows in account table /// </summary> /// <param name="newAccounts"></param> public SqlCreateAccountService(List <Account> newAccounts, CreateAccountDAOs daos) { this._newAccounts = newAccounts; newAccountDAO = daos.CreateAccountDAO; newMappingDAO = daos.CreateMappingDAO; mapperDAO = daos.MapperDAO; newUserDAO = daos.CreateUserDAO; }
public SqlCreateAccountService(Account newAccount, CreateAccountDAOs daos) { this._newAccounts = new List <Account>(); this._newAccounts.Add(newAccount); newAccountDAO = daos.CreateAccountDAO; newMappingDAO = daos.CreateMappingDAO; mapperDAO = daos.MapperDAO; newUserDAO = daos.CreateUserDAO; }