摘要:
在EntityFramework 6.1后可以直接使用 [Index("TitleIndex", IsUnique = true)] public string Title { get; set; } 在旧版本中, Unfortunately you can't define it as uniqu 阅读全文
posted @ 2016-02-25 11:59
Dhoopu
阅读(1774)
评论(0)
推荐(0)
摘要:
Just found out the answer and thought of updating here. Just need to do the following. public class AddressBook: DbContext { protected override void O 阅读全文
posted @ 2016-02-25 11:49
Dhoopu
阅读(1816)
评论(0)
推荐(0)

浙公网安备 33010602011771号