05 2019 档案

摘要:try{ context.SaveChanges();}catch (DbEntityValidationException ex){ var errorMessages = ex.EntityValidationErrors.SelectMany(validationResult => valid 阅读全文
posted @ 2019-05-13 11:47 jasonlai2016 阅读(178) 评论(0) 推荐(0)
摘要:Claim, ClaimsIdentity, ClaimsPrincipal: Claim:姓名:xxx,领证日期:xxx ClaimsIdentity:身份证/驾照 ClaimsPrincipal:人 人(ClaimsPrincipal)拥有,身份证,驾照等证件(ClaimsIdentity),这 阅读全文
posted @ 2019-05-10 15:04 jasonlai2016 阅读(501) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; namespace HYS.Fee.AppSrv { /// <summary> /// 数据库上下文 阅读全文
posted @ 2019-05-10 08:59 jasonlai2016 阅读(331) 评论(0) 推荐(0)
摘要:数据源: 代码: 结果: 阅读全文
posted @ 2019-05-07 09:02 jasonlai2016 阅读(146) 评论(0) 推荐(0)
摘要:数据源: 1.无into,相当于 inner join 结果: 2.有 into,类似于 left join,注意,返回了主表多条对应的数据 结果: 阅读全文
posted @ 2019-05-06 16:44 jasonlai2016 阅读(387) 评论(0) 推荐(0)
摘要:数据: GroupJoin: 返回左表所有数据 结果: Join:返回交集 结果: 阅读全文
posted @ 2019-05-06 16:16 jasonlai2016 阅读(1259) 评论(0) 推荐(0)