/// <summary> /// Deletes an instance of Companys based on Company_Id. /// </summary> /// <param name="company_Id">The database automatically generates this value. </param> /// <results>'true' if the instance was deleted, otherwise, 'false'. </results> public Boolean DeleteCompanys(Int32 company_Id) { System.Boolean value; value = Companys.DeleteCompanys(company_Id); return(value); }
/// <summary> /// Deletes an instance of Companys based on companys. /// </summary> /// <param name="companys">The instance of companys to persist. </param> /// <results>'true' if the instance was deleted, otherwise, 'false'. </results> public Boolean DeleteCompanys(Companys companys) { System.Boolean value; value = Companys.Delete(companys); return(value); }
/// <summary> /// Get the instance of Companys that corresponds to the primary key. If no data is found, a null instance is returned. /// Returns an instance of Companys. /// </summary> /// <param name="company_Id">The database automatically generates this value. </param> public Companys GetCompanys(Int32 company_Id) { Companys businessValue; businessValue = Companys.GetCompanys(company_Id); return(businessValue); }
/// <summary> /// Updates an instance of Companys. /// </summary> /// <param name="companys">The instance of companys to persist. </param> /// <results>'true' if the instance was updated, otherwise, 'false'. </results> public Boolean UpdateCompanys(Companys companys) { System.Boolean val; val = companys.Update(); return(val); }
/// <summary> /// Updates an instance of Companys if the underlying data has not changed. The original instance is Companys_Original. To bypass the concurrency check, pass in 'null' for the Companys_Original parameter. /// </summary> /// <param name="companys">The instance of companys to persist. </param> /// <param name="companys_Original">The original instance of companys. </param> /// <results>'true' if the instance was updated, otherwise, 'false'. </results> public static Boolean Update(Companys companys, Companys companys_Original) { System.Boolean value; value = companys.Update(companys_Original.Company_Name, companys_Original.Address, companys_Original.City, companys_Original.State, companys_Original.Zip_Code, companys_Original.Primary_Contact_First_Name, companys_Original.Primary_Contact_Last_Name, companys_Original.Primary_Contact_Phone, companys_Original.Primary_Contact_Email_Address, companys_Original.Secondary_Contact_First_Name1, companys_Original.Secondary_Contact_Last_Name1, companys_Original.Secondary_Contact_Phone1, companys_Original.Secondary_Contact_Email_Address1, companys_Original.Offers_Befefits_To_Different_Classes, companys_Original.Active, companys_Original.Company_Logo, companys_Original.Company_Logo_Height, companys_Original.Company_Logo_Width); return(value); }
/// <summary> /// Updates an instance of Companys. /// </summary> /// <param name="companys">The instance of companys to persist. </param> /// <results>'true' if the instance was updated, otherwise, 'false'. </results> public static Boolean Update(Companys companys) { System.Boolean value; value = companys.Update(); return(value); }
/// <summary> /// Deletes an instance of Companys based on companys. /// </summary> /// <param name="companys">The instance of companys to persist. </param> /// <results>'true' if the instance was deleted, otherwise, 'false'. </results> public static Boolean Delete(Companys companys) { System.Boolean value; value = Companys.DeleteCompanys(companys.Company_Id); return(value); }
/// <summary> /// Returns an instance of List<Bar.Business.Companys>. /// </summary> /// <param name="company_Id">The database automatically generates this value. </param> /// <results>Returns a strongly typed list of Companys. </results> public List <Companys> GetCompanysByCompany_Id(Int32 company_Id) { List <Companys> value; value = Companys.GetCompanysByCompany_Id(company_Id); return(value); }
/// <summary> /// Persists a new instance of Companys to the database. /// </summary> /// <param name="companys">The instance of companys to persist. </param> public static void Insert(Companys companys) { Int32 company_Id = companys.Company_Id; Companys.InsertCompanys(companys.Company_Name, companys.Address, companys.City, companys.State, companys.Zip_Code, companys.Primary_Contact_First_Name, companys.Primary_Contact_Last_Name, companys.Primary_Contact_Phone, companys.Primary_Contact_Email_Address, companys.Secondary_Contact_First_Name1, companys.Secondary_Contact_Last_Name1, companys.Secondary_Contact_Phone1, companys.Secondary_Contact_Email_Address1, companys.Offers_Befefits_To_Different_Classes, companys.Active, companys.Company_Logo, companys.Company_Logo_Height, companys.Company_Logo_Width, ref company_Id); //Reassign ref and out parameters companys.Company_Id = company_Id; }
/// <summary> /// Get the instance of Companys that corresponds to the primary key. If no data is found, a null instance is returned. /// Returns an instance of Companys. /// </summary> /// <param name="company_Id">The database automatically generates this value. </param> public static Companys GetCompanys(Int32 company_Id) { Companys val = null; List <Bar.Business.Companys> businessEntityCollection = GetCompanysByCompany_Id(company_Id); if (businessEntityCollection.Count > 0) { val = businessEntityCollection[0]; } return(val); }
/// <summary> /// Updates an instance of Companys if the underlying data has not changed. The original instance is Companys_Original. To bypass the concurrency check, pass in 'null' for the Companys_Original parameter. /// </summary> /// <param name="companys">The instance of companys to persist. </param> /// <param name="companys_Original">The original instance of companys. </param> /// <results>'true' if the instance was updated, otherwise, 'false'. </results> public Boolean UpdateCompanys(Companys companys, Companys companys_Original) { System.Boolean val; if (companys_Original == null) { val = companys.Update(); } else { val = Companys.Update(companys, companys_Original); } return(val); }
/// <summary> /// Returns all instances of Companys. 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 Companys. </results> public List <Companys> GetAllCompanys(PagingInfo pagingInfo) { List <Companys> val; long totalCount; if (pagingInfo == null || pagingInfo.GetAll) { val = Companys.GetAll(); if (pagingInfo != null) { pagingInfo.TotalCount = val.Count; } } else { pagingInfo.Normalize(); val = Companys.GetAll(pagingInfo.PageSize, pagingInfo.StartingRowNumber, pagingInfo.PageNr, out totalCount); pagingInfo.TotalCount = totalCount; } return(val); }
/// <summary> /// Persists a new instance of Companys to the database. /// </summary> /// <param name="companys">The instance of companys to persist. </param> public void InsertCompanys(Companys companys) { Companys.Insert(companys); }