Pramod
Pramod

Reputation: 341

How to specify column of a table should be Indexed

Basically I have Table class specified. I am already using attribution like [Required] I am trying to find out what is the attribute property to declare a column of table for Indexing. Any help appreciated. I am using version 5.x of the EnttityFramework. If required can upgrade to 6

Upvotes: 0

Views: 17

Answers (1)

Cyrus
Cyrus

Reputation: 2429

You can use IndexAttribute [Index].

http://blog.oneunicorn.com/2014/02/15/ef-6-1-creating-indexes-with-indexattribute/

Upvotes: 1

Related Questions