Composite primary key

Jan 6, 2011 at 6:52 PM

Hello,

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?

 

Thanks,

Duarte

Coordinator
Jan 6, 2011 at 6:56 PM

Composite primary keys currently aren't supported.

Coordinator
Jan 6, 2011 at 7:00 PM

I've added a feature request for it:

http://orm.codeplex.com/workitem/29925

Jan 6, 2011 at 7:11 PM

Ok, thanks for adding the feature request :).