I\'m running EF 4.2 CF and want to create indexes on certain columns in my POCO objects.
As an example lets say we have this employee class:
public c
For anyone using Entity Framework 6.1+, you can do the following with fluent api:
modelBuilder .Entity() .Property(t => t.Name) .HasColumnAnnotation("Index", new IndexAnnotation(new IndexAttribute()));
Read more in the documentation.