1.

Will There Be Any Issues Adding A Table Without Primary Keys To A Data Model?

Answer»

Every entity must have a key, even in the case where the entity maps to a view. When you use the Entity DESIGNER to create or UPDATE a model, the classes that are GENERATED inherit from EntityObject, which REQUIRES EntityKey. So, we have to have a primary key in the table to add it to the data model.

Every entity must have a key, even in the case where the entity maps to a view. When you use the Entity Designer to create or update a model, the classes that are generated inherit from EntityObject, which requires EntityKey. So, we have to have a primary key in the table to add it to the data model.



Discussion

No Comment Found