Example #1
0
 public ShopBrandCommodityServer(ShopDbContext db, string shopFlag, DiningWay diningWay)
 {
     this.db = db;
     mShop   = db.Query <Shop>()
               .Where(m => !m.IsDel)
               .Where(m => m.Flag == shopFlag)
               .FirstOrDefault();
     this.diningWay = diningWay;
 }
Example #2
0
 public ShopBrandCommodityServer(ShopDbContext db, Shop shop, DiningWay diningWay)
 {
     this.db        = db;
     mShop          = shop;
     this.diningWay = diningWay;
 }