public void AddStore(Store store) { using (var context = new BudgetDataContext(_connectionstring)) { context.Stores.InsertOnSubmit(store); context.SubmitChanges(); } }
public void AddMethod(Method method) { using (var context = new BudgetDataContext(_connectionstring)) { context.Methods.InsertOnSubmit(method); context.SubmitChanges(); } }
public void AddExpenes(Expense expense) { using (var context = new BudgetDataContext(_connectionstring)) { context.Expenses.InsertOnSubmit(expense); context.SubmitChanges(); } }