private sys_User GetUserInfo() { sys_User model = null; var userId = Convert.ToInt32(AccountHelper.GetAccountUserId()); var list = BLLSingleton.Instance.IUserService.GetListBy(c => c.UserId == userId); if (list != null) model = list.FirstOrDefault();…
一.案例1,及解决方案: "LINQ to Entities 不识别方法"System.String ToString()",因此该方法无法转换为存储表达式." 原因是LINQ to Entities 不支持ToString()函数. 可用下述方法进行转换解决: string str= "1,2,3,4,5,6,7,8,9,0"; List<int> result = new List<string>(str.Split(…