/// <summary> /// Updates an instance of System_Users if the underlying data has not changed. The original instance is System_Users_Original. To bypass the concurrency check, pass in 'null' for the System_Users_Original parameter. /// </summary> /// <param name="system_Users">The instance of system_Users to persist. </param> /// <param name="system_Users_Original">The original instance of system_Users. </param> /// <results>'true' if the instance was updated, otherwise, 'false'. </results> public static Boolean Update(System_Users system_Users, System_Users system_Users_Original) { System.Boolean value; value = system_Users.Update(system_Users_Original.Company_Id, system_Users_Original.First_Name, system_Users_Original.Last_Name, system_Users_Original.Email_Address, system_Users_Original.Login_Id, system_Users_Original.Hash, system_Users_Original.Salt, system_Users_Original.Active, system_Users_Original.Created_Date); return(value); }
/// <summary> /// Deletes an instance of System_Users based on system_Users. /// </summary> /// <param name="system_Users">The instance of system_Users to persist. </param> /// <results>'true' if the instance was deleted, otherwise, 'false'. </results> public static Boolean Delete(System_Users system_Users) { System.Boolean value; value = System_Users.DeleteSystem_Users(system_Users.System_User_Id); return(value); }
/// <summary> /// Updates an instance of System_Users. /// </summary> /// <param name="system_Users">The instance of system_Users to persist. </param> /// <results>'true' if the instance was updated, otherwise, 'false'. </results> public static Boolean Update(System_Users system_Users) { System.Boolean value; value = system_Users.Update(); return(value); }
/// <summary> /// Updates an instance of System_Users. /// </summary> /// <param name="system_Users">The instance of system_Users to persist. </param> /// <results>'true' if the instance was updated, otherwise, 'false'. </results> public Boolean UpdateSystem_Users(System_Users system_Users) { System.Boolean val; val = system_Users.Update(); return(val); }
/// <summary> /// Deletes an instance of System_Users based on System_User_Id. /// </summary> /// <param name="system_User_Id">The database automatically generates this value. </param> /// <results>'true' if the instance was deleted, otherwise, 'false'. </results> public Boolean DeleteSystem_Users(Int32 system_User_Id) { System.Boolean value; value = System_Users.DeleteSystem_Users(system_User_Id); return(value); }
/// <summary> /// Deletes an instance of System_Users based on system_Users. /// </summary> /// <param name="system_Users">The instance of system_Users to persist. </param> /// <results>'true' if the instance was deleted, otherwise, 'false'. </results> public Boolean DeleteSystem_Users(System_Users system_Users) { System.Boolean value; value = System_Users.Delete(system_Users); return(value); }
/// <summary> /// Get the instance of System_Users that corresponds to the primary key. If no data is found, a null instance is returned. /// Returns an instance of System_Users. /// </summary> /// <param name="system_User_Id">The database automatically generates this value. </param> public System_Users GetSystem_Users(Int32 system_User_Id) { System_Users businessValue; businessValue = System_Users.GetSystem_Users(system_User_Id); return(businessValue); }
/// <summary> /// Returns an instance of List<Bar.Business.System_Users>. /// </summary> /// <param name="system_User_Id">The database automatically generates this value. </param> /// <results>Returns a strongly typed list of System_Users. </results> public List <System_Users> GetSystem_UsersBySystem_User_Id(Int32 system_User_Id) { List <System_Users> value; value = System_Users.GetSystem_UsersBySystem_User_Id(system_User_Id); return(value); }
/// <summary> /// Persists a new instance of System_Users to the database. /// </summary> /// <param name="system_Users">The instance of system_Users to persist. </param> public static void Insert(System_Users system_Users) { Int32 system_User_Id = system_Users.System_User_Id; System_Users.InsertSystem_Users(system_Users.Company_Id, system_Users.First_Name, system_Users.Last_Name, system_Users.Email_Address, system_Users.Login_Id, system_Users.Hash, system_Users.Salt, system_Users.Active, system_Users.Created_Date, ref system_User_Id); //Reassign ref and out parameters system_Users.System_User_Id = system_User_Id; }
/// <summary> /// Get the instance of System_Users that corresponds to the primary key. If no data is found, a null instance is returned. /// Returns an instance of System_Users. /// </summary> /// <param name="system_User_Id">The database automatically generates this value. </param> public static System_Users GetSystem_Users(Int32 system_User_Id) { System_Users val = null; List <Bar.Business.System_Users> businessEntityCollection = GetSystem_UsersBySystem_User_Id(system_User_Id); if (businessEntityCollection.Count > 0) { val = businessEntityCollection[0]; } return(val); }
/// <summary> /// Updates an instance of System_Users if the underlying data has not changed. The original instance is System_Users_Original. To bypass the concurrency check, pass in 'null' for the System_Users_Original parameter. /// </summary> /// <param name="system_Users">The instance of system_Users to persist. </param> /// <param name="system_Users_Original">The original instance of system_Users. </param> /// <results>'true' if the instance was updated, otherwise, 'false'. </results> public Boolean UpdateSystem_Users(System_Users system_Users, System_Users system_Users_Original) { System.Boolean val; if (system_Users_Original == null) { val = system_Users.Update(); } else { val = System_Users.Update(system_Users, system_Users_Original); } return(val); }
/// <summary> /// Returns a collection of System_Users filtered on the following criteria: Company_Id. The pagingInfo parameters are used for paging. /// </summary> /// <param name="pagingInfo">a container for the paging parameters. </param> /// <results>Returns a strongly typed list of System_Users. </results> public List <System_Users> GetSystem_UsersByCompany_Id(Int32 company_Id, PagingInfo pagingInfo) { List <System_Users> val; long totalCount; if (pagingInfo == null || pagingInfo.GetAll) { val = System_Users.GetSystem_UsersByCompany_Id(company_Id); if (pagingInfo != null) { pagingInfo.TotalCount = val.Count; } } else { pagingInfo.Normalize(); val = System_Users.GetSystem_UsersByCompany_Id(company_Id, pagingInfo.PageSize, pagingInfo.StartingRowNumber, pagingInfo.PageNr, out totalCount); pagingInfo.TotalCount = totalCount; } return(val); }
/// <summary> /// Persists a new instance of System_Users to the database. /// </summary> /// <param name="system_Users">The instance of system_Users to persist. </param> public void InsertSystem_Users(System_Users system_Users) { System_Users.Insert(system_Users); }
private List <System_Users> GetSystem_Users() { return(System_Users.GetSystem_UsersByCompany_Id(Company_Id)); }