2018年11月26日
摘要: ef映射数据库的时候 必须是唯一主键,在db first模式中:如果标志没有设置主键的话,是映射不成功的。 另外一种情况 创建视图的时候你的id值不唯一的话,ef查询的时候会导致数据重复(都是数据中的第一条数据)。所以当创建视图的时候,必须保证主键唯一。才不会导致数据错乱 阅读全文
posted @ 2018-11-26 12:30 Leegj 阅读(469) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ZY.Common { public static class CommonHelper { /// /// 自定... 阅读全文
posted @ 2018-11-26 12:25 Leegj 阅读(1187) 评论(0) 推荐(0) 编辑