public static void StoreDogInit() { string errMsg = string.Empty; IStoreService storeService = BLLContainer.Resolve <IStoreService>(); string sql = " exec Selectstoredog"; System.Data.DataSet ds = XCGameManabll.ExecuteQuerySentence(sql, null); DataTable dt = ds.Tables[0]; if (dt.Rows.Count > 0) { var list = Utils.GetModelList <StoreDogCacheModel>(ds.Tables[0]).ToList(); StoreDogCache.Add(list); } }
public bool IsExistDog(string storeId, string dogId) { return(StoreDogCache.ExistDogId(storeId, dogId)); }