コード例 #1
0
        public bool Delete(Guid id)
        {
            var account = SafenedContext.BankAccount.FirstOrDefault(a => a.Id == id);

            if (account != null)
            {
                SafenedContext.BankAccount.Remove(account);
                return(SafenedContext.SaveChanges() > 0);
            }

            return(false);
        }
コード例 #2
0
 public UserRepository(SafenedContext customerContext) : base(customerContext)
 {
 }
コード例 #3
0
 public Repository(SafenedContext safenedContext)
 {
     SafenedContext = safenedContext;
 }
コード例 #4
0
 public BankAccountRepository(SafenedContext customerContext) : base(customerContext)
 {
 }