Beispiel #1
0
 public bool AddOrderLog(T_OrderLog model)
 {
     using (var db = new cakedbEntities())
     {
         db.Set <T_OrderLog>().Add(model);
         return(db.SaveChanges() > 0);
     }
 }
Beispiel #2
0
 public bool InsertAddress(T_Address model)
 {
     using (var db = new cakedbEntities())
     {
         db.Set <T_Address>().Add(model);
         return(db.SaveChanges() > 0);
     }
 }
Beispiel #3
0
 public bool InsertCart(T_Cart model)
 {
     using (var db = new cakedbEntities())
     {
         db.Set <T_Cart>().Add(model);
         return(db.SaveChanges() > 0);
     }
 }
Beispiel #4
0
 public bool InsertUserModebyMobile(T_User model)
 {
     using (var db = new cakedbEntities())
     {
         db.Set <T_User>().Add(model);
         return(db.SaveChanges() > 0);
     }
 }
Beispiel #5
0
        public bool AddProductDetail(T_ProductDetail model)
        {
            using (var db = new cakedbEntities())
            {
                db.Set <T_ProductDetail>().Add(model);

                return(db.SaveChanges() > 0);
            }
        }