8 Replies
Indexes - EF Core
Configuring indexes in an Entity Framework Core model
Take a look at this
It has an IsUnique property
Set that to true
does not work. 😦
"Index" is not an attribute class
Just to make sure: are you using the old-ass non-core Entity Framework, as used with .NET Framework? Or we're talking Entity Framework Core here, with .NET Core or .NET?
assuming EF Core, please use
IEntityConfiguraton
classes instead of attributes for non-trivial configurationI am using Entity Core with .Net Core !!!
Good.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.