摘要:
判断是否为null whereExpression = p =>string.IsNullOrWhiteSpace(p.RealName) 等同于 SELECT * FROM tbl WHERE RealNameIS NULL 判断以什么开头,前缀匹配 whereExpression = p =>p 阅读全文
摘要:
控制器相关中:HttpContext来获取实例 HttpContext下有一个RequestedService同样可以用来获取实例对象 IUserDAL userDAL = HttpContext.RequestServices.GetService(typeof(IUserDAL)) as IUs 阅读全文