摘要: 在Entity Framework使用IndexAnnotation来创建索引,但是系统未提供能够创建组合的唯一索引。下面扩展方法可以生成唯一索引。 1 public static class TypeConfigurationExtensions 2 { 3 /// 4 /// ... 阅读全文
posted @ 2015-07-14 23:51 lcyan 阅读(1599) 评论(0) 推荐(0) 编辑