示例#1
0
 bool func(Account acc)
 {
     if (acc.Id == 2) return true;
     else return false;
 }
示例#2
0
 public void Edit(Account account)
 {
     try {
         database.Entry(account).State = EntityState.Modified;
     }
     catch(Exception e)
     {
         Log.Write(e);
     }
 }
示例#3
0
 public void Add(Account account)
 {
     try {
         database.Account.Add(account);
     }
     catch(Exception e)
     {
         Log.Write(e);
     }
 }
示例#4
0
 public void Delete(Account account)
 {
     try {
         database.Entry(account).State = EntityState.Deleted;
     }
     catch(Exception e)
     {
         Log.Write(e);
     }
 }