/// <summary>
        ///Populates the instance using data from the datastore.
        ///The lookup of the data in the datastore is based on the instance's current ID value.
        /// </summary>
        private void Load()
        {
            List <Bar.Data.Companys> dataEntityCollection = OxyData.Data.DataProvider <Bar.Data.DataProvider> .Current.GetCompanysByCompany_Id(Company_Id);

            if (dataEntityCollection.Count == 0)
            {
                throw new InvalidOperationException("Object can't be instantiated: key(s) may be invalid");
            }

            Bar.Data.Companys val = (Bar.Data.Companys)(dataEntityCollection[0]);

            Company_Id = val.Company_Id;

            Company_Name = val.Company_Name;

            Address = val.Address;

            City = val.City;

            State = val.State;

            Zip_Code = val.Zip_Code;

            Primary_Contact_First_Name = val.Primary_Contact_First_Name;

            Primary_Contact_Last_Name = val.Primary_Contact_Last_Name;

            Primary_Contact_Phone = val.Primary_Contact_Phone;

            Primary_Contact_Email_Address = val.Primary_Contact_Email_Address;

            Secondary_Contact_First_Name1 = val.Secondary_Contact_First_Name1;

            Secondary_Contact_Last_Name1 = val.Secondary_Contact_Last_Name1;

            Secondary_Contact_Phone1 = val.Secondary_Contact_Phone1;

            Secondary_Contact_Email_Address1 = val.Secondary_Contact_Email_Address1;

            Offers_Befefits_To_Different_Classes = val.Offers_Befefits_To_Different_Classes;

            Active = val.Active;

            Company_Logo = val.Company_Logo;

            Company_Logo_Height = val.Company_Logo_Height;

            Company_Logo_Width = val.Company_Logo_Width;
        }
        internal Companys(Bar.Data.Companys companys)
        {
            Company_Id = companys.Company_Id;

            Company_Name = companys.Company_Name;

            Address = companys.Address;

            City = companys.City;

            State = companys.State;

            Zip_Code = companys.Zip_Code;

            Primary_Contact_First_Name = companys.Primary_Contact_First_Name;

            Primary_Contact_Last_Name = companys.Primary_Contact_Last_Name;

            Primary_Contact_Phone = companys.Primary_Contact_Phone;

            Primary_Contact_Email_Address = companys.Primary_Contact_Email_Address;

            Secondary_Contact_First_Name1 = companys.Secondary_Contact_First_Name1;

            Secondary_Contact_Last_Name1 = companys.Secondary_Contact_Last_Name1;

            Secondary_Contact_Phone1 = companys.Secondary_Contact_Phone1;

            Secondary_Contact_Email_Address1 = companys.Secondary_Contact_Email_Address1;

            Offers_Befefits_To_Different_Classes = companys.Offers_Befefits_To_Different_Classes;

            Active = companys.Active;

            Company_Logo = companys.Company_Logo;

            Company_Logo_Height = companys.Company_Logo_Height;

            Company_Logo_Width = companys.Company_Logo_Width;
        }