Composite primary key

Jan 6, 2011 at 6:52 PM


I have a table that has a primary key with multiple columns so I decorated the fields in the corresponding entity with "IsPrimaryKey = true", but I can see that this isn't supported, as a MutiplePrimaryKeyException was thrown when I added the entity type to the store.

Is there a way to set multiple fields as a primary key?




Jan 6, 2011 at 6:56 PM

Composite primary keys currently aren't supported.

Jan 6, 2011 at 7:00 PM

I've added a feature request for it:

Jan 6, 2011 at 7:11 PM

Ok, thanks for adding the feature request :).