Ejemplo n.º 1
0
		public void SaveExcludedIndividuals(IEnumerable<Individual> individuals)
		{
			using (var dc = new EngageCCTDataClassesDataContext())
			{
				foreach (var individual in individuals)
				{
					T_ExcListIndividual tIndividual = new T_ExcListIndividual();
					tIndividual.eliAddressLine1 = individual.AddressLine1;
					tIndividual.eliAddressLine2 = individual.AddressLine2;
					tIndividual.eliAddressLine3 = individual.AddressLine3;
					tIndividual.eliAkaDba = individual.Aka;
					tIndividual.eliCity = individual.City;
					tIndividual.eliComments = individual.Comments;
					tIndividual.eliFirstName = individual.FirstName;
					tIndividual.eliIssuingState = individual.IssuingState;
					tIndividual.eliLastName = individual.LastName;
					tIndividual.eliLicenseNumber = individual.LicenseNumber;
					tIndividual.eliLicenseType = individual.LicenseType;
					tIndividual.eliState = individual.State;
					tIndividual.eliZip = individual.Zip;
					dc.T_ExcListIndividuals.InsertOnSubmit(tIndividual);
				}
				dc.SubmitChanges();
			}
		}
 partial void UpdateT_ExcListIndividual(T_ExcListIndividual instance);
 partial void DeleteT_ExcListIndividual(T_ExcListIndividual instance);
 partial void InsertT_ExcListIndividual(T_ExcListIndividual instance);