Esempio n. 1
0
 public void AddCar(Car c)
 {
     using (var context = new PeopleCarsDbDataContext(_connectionString))
     {
         context.Cars.InsertOnSubmit(c);
         context.SubmitChanges();
     }
 }
Esempio n. 2
0
 public void Add(People person)
 {
     using (var context = new PeopleCarsDbDataContext(_connectionString))
     {
         context.Peoples.InsertOnSubmit(person);
         context.SubmitChanges();
     }
 }