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