/// <summary>
 /// Craft queries based off of multiple users
 /// </summary>
 /// <returns></returns>
 public DeleteAccountSQLService(List <User> targetUsers, ISqlDAO deleteSystem, ISqlDAO deleteMapping, ISqlDAO deleteAccount)
 {
     this._targetUsers     = targetUsers;
     this._deleteAccountdb = deleteAccount;
     this._deleteMappingdb = deleteMapping;
     this._deleteSystemdb  = deleteSystem;
 }
Example #2
0
 public PermissionUpdateSqlService(ISqlDAO dao, Permission permission)
 {
     _dao         = dao;
     _permissions = new List <Permission> {
         permission
     };
 }
 public DeleteAccountSQLService(User targetUser, ISqlDAO deleteSystem, ISqlDAO deleteMapping, ISqlDAO deleteAccount)
 {
     this._targetUsers = new List <User>();
     this._targetUsers.Add(targetUser);
     this._deleteAccountdb = deleteAccount;
     this._deleteMappingdb = deleteMapping;
     this._deleteSystemdb  = deleteSystem;
 }
Example #4
0
 public PermissionUpdateSqlService(ISqlDAO dao, List <Permission> permissions)
 {
     _dao         = dao;
     _permissions = permissions;
 }
Example #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;
 }
 /// <summary>
 /// Craft queries based off a single user
 /// </summary>
 /// <returns></returns>
 ///
 public DeleteAccountSQLService(ISqlDAO deleteSystem, ISqlDAO deleteMapping, ISqlDAO deleteAccount)
 {
     this._deleteAccountdb = deleteAccount;
     this._deleteMappingdb = deleteMapping;
     this._deleteSystemdb  = deleteSystem;
 }
 /// <summary>
 /// Service that crafts queries for updating users related to a sql database
 /// </summary>
 /// <param name="newUsers"></param>
 /// <param name="update"></param>
 public UpdateAccountSqlService(List <User> newUsers, ISqlDAO update)
 {
     this._newUsers = newUsers;
     this._update   = update;
 }
 public UpdateAccountSqlService(User newUser, ISqlDAO update)
 {
     this._newUsers = new List <User>();
     this._newUsers.Add(newUser);
     this._update = update;
 }
 /// <summary>
 /// Service that crafts queries for updating a single user related to a sql database
 /// </summary>
 /// <param name="newUsers"></param>
 /// <param name="update"></param>
 ///
 public UpdateAccountSqlService(ISqlDAO update)
 {
     this._update = update;
 }