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