public void AddPledge(Pledge pledge)
 {
     using (var context = new ShulDataContext(_conStr))
     {
         context.Pledges.InsertOnSubmit(pledge);
         context.SubmitChanges();
     }
 }
 public void AddMonthlyPayment(MonthlyPayment mp)
 {
     using (var context = new ShulDataContext(_conStr))
     {
         context.MonthlyPayments.InsertOnSubmit(mp);
         context.SubmitChanges();
     }
 }
 public void AddPayment(Payment payment)
 {
     using (var context = new ShulDataContext(_conStr))
     {
         context.Payments.InsertOnSubmit(payment);
         context.SubmitChanges();
     }
 }
 public void AddExpense(Expense expense)
 {
     using (var context = new ShulDataContext(_conStr))
     {
         context.Expenses.InsertOnSubmit(expense);
         context.SubmitChanges();
     }
 }
Exemple #5
0
 public void AddMessage(Message message)
 {
     using (var context = new ShulDataContext(_conStr))
     {
         context.Messages.InsertOnSubmit(message);
         context.SubmitChanges();
     }
 }
Exemple #6
0
        public void SignUp(Member member, string password)
        {
            string salt         = PasswordHelper.GenerateSalt();
            string passwordHash = PasswordHelper.HashPassword(password, salt);

            member.PasswordSalt = salt;
            member.PasswordHash = passwordHash;
            using (var context = new ShulDataContext(_conStr))
            {
                context.Members.InsertOnSubmit(member);
                context.SubmitChanges();
            }
        }