John Oliver
John Oliver

Reputation:

Entity Framework - Using GUID as condition

How can I use this sample Inheritance and Associations with Entity Framework but using a data type GUID as Condition?

In this sample, I only use Strings and Integers as Condition.

Thanks

Upvotes: 1

Views: 773

Answers (1)

Craig Stuntz
Craig Stuntz

Reputation: 126547

Yes, so long as the GUID is not also a foreign key. Any scalar type is allowed, and GUIDs are scalar, but it is a limitation of the currently shipping version of the Entity Framework that you cannot use a foreign key value as a subtype discriminator field.

Upvotes: 2

Related Questions