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;
 }
Exemplo n.º 5
0
 /// <summary>
 /// class to update permissions for a list of accounts or only one account
 /// </summary>
 /// <param name="dao"></param>
 /// <param name="permissions"></param>
 ///
 public PermissionUpdateSqlService(ISqlDAO dao, IMapperDAO mapperDao)
 {
     _dao       = dao;
     _mapperDAO = mapperDao;
 }