Beispiel #1
0
 public int Update(TraOrderLogEntity t, string[] properties = null)
 {
     using (BrightourDbContext db = new BrightourDbContext())
     {
         return(db.Update(t, properties));
     }
 }
Beispiel #2
0
 public int Insert(TraOrderLogEntity t)
 {
     using (BrightourDbContext db = new BrightourDbContext())
     {
         var log = db.TraOrderLog.Add(t);
         db.SaveChanges();
         return(log.LogId);
     }
 }
Beispiel #3
0
        public int AddLog(TraOrderLogModel t)
        {
            if (t.LogId != 0)
            {
                return(-1);
            }
            TraOrderLogEntity tt = Mapper.Map <TraOrderLogModel, TraOrderLogEntity>(t);

            return(_dal.Insert(tt));
        }
Beispiel #4
0
 public int Delete(TraOrderLogEntity t)
 {
     throw new NotImplementedException();
 }