public Boolean IsExistStore(string openId, string name) { int i = DBStoreInfo.Count(u => u.OwnnerOpenId == openId && u.Name == name); return(i > 0); }
/// <summary> /// 根据支付宝的UserId获取商铺 /// </summary> /// <param name="AliPayUserId"></param> /// <returns></returns> public EStoreInfo Store_GetByAliPayUserId(string AliPayUserId) { return(DBStoreInfo.Where(s => s.AliPayAccount == AliPayUserId).FirstOrDefault()); }
public int StoreCount(string openId) { int i = DBStoreInfo.Count(u => u.OwnnerOpenId == openId); return(i); }