示例#1
0
 public void Add(YG.SC.DataAccess.ShopRoom model)
 {
     using (var db = new YG.SC.DataAccess.Entities())
     {
         db.ShopRoom.Add(model);
         db.SaveChanges();
     }
 }
示例#2
0
 public bool Exist(string shopId)
 {
     using (var db = new YG.SC.DataAccess.Entities())
     {
         var shopExist = db.ShopRoom.Any(m => m.ShopId == shopId);
         return(shopExist);
     }
 }
示例#3
0
 public void Add(YG.SC.DataAccess.JobMinute model)
 {
     using (var db = new YG.SC.DataAccess.Entities())
     {
         db.JobMinute.Add(model);
         db.SaveChanges();
     }
 }