Esempio n. 1
0
 public int Insert(T_SMS_MESSAGE entity)
 {
     using (var dbContext = new DuPont_TestContext())
     {
         dbContext.T_SMS_MESSAGE.Add(entity);
         return(dbContext.SaveChanges());
     }
 }
Esempio n. 2
0
 public int Update(T_SMS_MESSAGE entity)
 {
     using (var dbContext = new DuPont_TestContext())
     {
         var dbEntry = dbContext.T_SMS_MESSAGE.Find(entity.Id);
         if (dbEntry != null)
         {
             ClassValueCopyHelper.Copy(dbEntry, entity);
             return(dbContext.SaveChanges());
         }
     }
     return(0);
 }
Esempio n. 3
0
 public int Delete(T_SMS_MESSAGE entity)
 {
     throw new NotImplementedException();
 }