1

I'm using EF6 for first time. having a table like this:

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

please advice

1
  • Have a look here. Commented Nov 17, 2013 at 16:13

2 Answers 2

3

The capability was added for EF 6.1 and is available already in nightly builds. For more information:

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

Sign up to request clarification or add additional context in comments.

Comments

1

Unfortunately there is no DataAnnotion yet in EF to create indices. When you're using migrations, then you can adjust the created migration to add an Index manually.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.