我是第一次使用 EF6。有这样一张 table :
public class DBBlog
{
public int Id { get; set; }
public string Title { get; set; } //<-- need to be indexed
}
请多多指教
最佳答案
此功能是为 EF 6.1 添加的,并且已在夜间构建中可用。更多信息:
关于c# - Entity Framework 代码优先 6.0 : is there any annotations to add index to a column(s),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20020703/