Exemplo n.º 1
0
		public void SaveExcludedCompanies(IEnumerable<Company> companies)
		{
			using (var dc = new EngageCCTDataClassesDataContext())
			{
				foreach (var company in companies)
				{
					T_ExcListCompany tCompany = new T_ExcListCompany();
					tCompany.elcAddressLine1 = company.AddressLine1;
					tCompany.elcAddressLine2 = company.AddressLine2;
					tCompany.elcAddressLine3 = company.AddressLine3;
					tCompany.elcAkaDba = company.Aka;
					tCompany.elcCity = company.City;
					tCompany.elcComments = company.Comments;
					tCompany.elcCompanyName = company.CompanyName;
					tCompany.elcIssuingState = company.IssuingState;
					tCompany.elcLicenseNumber = company.LicenseNumber;
					tCompany.elcState = company.State;
					tCompany.elcZip = company.Zip;
					dc.T_ExcListCompanies.InsertOnSubmit(tCompany);
				}
				dc.SubmitChanges();
			}
		}
 partial void UpdateT_ExcListCompany(T_ExcListCompany instance);
 partial void DeleteT_ExcListCompany(T_ExcListCompany instance);
 partial void InsertT_ExcListCompany(T_ExcListCompany instance);