I have the following in a class map. Currently, it creates the table
with a MaskId field and a PermissionId and no Id (expected). So here
are my three simple questions.

Regarding the resultant MaskPermission table:

- How do I make MaskId and PermissionId a compound unique key?

- Would it be better to make them a compound primary key instead?

- How do I make MaskId and PermissionId a compound primary key?

HasManyToMany<Permission>(x => x.Permissions)
.Table("MaskPermissions");

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to