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
You can specify index in ModelBuilder
modelBuilder .Entity(builder => { builder.HasNoKey(); builder.HasIndex("UserId").IsUnique(false); builder.ToTable("UserSalary"); });