c# - Entity Framework 代码优先 6.0 : is there any annotations to add index to a column(s)

标签 c# entity-framework indexing

我是第一次使用 EF6。有这样一张 table :

public class DBBlog
{
     public int Id { get; set; }
     public string Title { get; set; }  //<-- need to be indexed
}

请多多指教

最佳答案

此功能是为 EF 6.1 添加的,并且已在夜间构建中可用。更多信息:

https://entityframework.codeplex.com/workitem/57

关于c# - Entity Framework 代码优先 6.0 : is there any annotations to add index to a column(s),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20020703/

相关文章:

c# - 无法调用反射 DLL 中的方法。我怎样才能得到更好的错误信息?

c# - 我应该实现存储库和 xml 服务吗?

c# - 不支持 MySql EF 6 存储过程导入函数 EDM 类型

c# - 元数据异常 : Unable to load the specified metadata resource

c# - DDD : Repository, 工作单元、ORM 和依赖项注入(inject)

mysql - 通过索引获取列名并在mysql查询中使用

c# - asp.net core 如何杀死一个线程

c# - 使用 Open XML SDK c# 读取 excel

python - pandas multi-index 如何通过二级屏蔽数据

arrays - Swift 字符串数组的索引号