Im trying to enforce unique constraint of a column using fluent configuration for code first. Is there any better way than implementing it in business logic or using something like below
context.ObjectContext.ExecuteStoreCommand("CREATE UNIQUE CONSTRAINT...");
Or I was wondering if it's not possible to implement unique constrain using fluent configurations?
EDIT :
It's confirmed that this is not possible with fluent configurations. But then again I'm wondering what's the best way to do this? And would like to know the reason behind EF not supporting this.