会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
my cnblogs
博客园
首页
联系
订阅
管理
2015年7月14日
在Entity Framework中使用唯一约束(unique)
摘要: 在Entity Framework使用IndexAnnotation来创建索引,但是系统未提供能够创建组合的唯一索引。下面扩展方法可以生成唯一索引。 1 public static class TypeConfigurationExtensions 2 { 3 /// 4 /// ...
阅读全文
posted @ 2015-07-14 23:51 lcyan
阅读(1599)
评论(0)
推荐(0)
编辑
公告