I want to create a many-to-many relationship in EF. Normally I would use the InverseProperty attribute, however, in this case:
Role ( Id, Name, ICollection<Privilege> )
Privilege ( Id, Name )
I don't have an inverse property. How to tell EF that a privilege may be used in more than one Role?
[ Currently EF puts a Role_Id column in the Privilege table. This is not what I want :-) ]
Edit: I do not want to use the Fluent API, I'm looking for an attribute.