public void Insert(Person person) { using (PersonDataContext context = new PersonDataContext()) { context.Persons.InsertOnSubmit(person); context.SubmitChanges(); } }
public void Insert(Person person) { using (PersonDataContext context = new PersonDataContext()) { context.Persons.InsertOnSubmit(person); context.SubmitChanges(); } }