This topic enumerates possible validation errors () and warnings (
) and provides hints on what you can do with them.
No key is defined for EntityType. You should specify a key for this EntityType.
Property name is similar to class name. You should specify different names for property and class.
The Name value in the Column element is invalid. You should specify a valid name.
Entity type is not mapped. You should map this entity type.
Entity type contains a condition on its primary key. You should remove the condition.
Data loss is possible due to improperly designed model. Revise the model to eliminate the risk of data loss.
Member Mapping specified is invalid. Change the type of the column so that it matches the database type.
Key part is invalid. You should specify non nullable parts of a key.
Key part is invalid. You should specify nullable parts of a key.
A non-nullable column in a table is mapped to a nullable entity property. You should change either nullability of the entity property or nullability of the corresponding table column.
A property in a class is not mapped. You should map the property.
A column should be mapped because it has no default value and is non-nullable. You should map the column.
EntitySet's properties do not form the EntitySet's key properties. Revise the key of the problem entity in the model.
Some key properties are incorrectly mapped. Revise the key of the problem entity in the model.
The insert/update/delete behavior of an entity is partially configured with function import. Entity Framework requires that an entity has either all three behavior types configured with function import or none. For example, you can't have insert behavior configured and update behavior left as is. Either provide function imports for every behavior or remove the configured behavior from the entity.
|
A mapping function binding specifies a function that is not supported. Consider rewriting the function.
A mapping function binding specifies a function with an unsupported parameter. Consider rewriting the function.
Parameter Mapping specified is not valid. Change the member type or change the stored procedure, so that the parameter mapping become valid.
There's an error in the model. All function parameters must be mapped. Provide mapping for all parameters of the function.
|
A conceptual side property has already been mapped to a storage property with type MyType. You should make sure that all properties in the storage model have the same type.
A parent class is not specified. You should specify parent class.
A child class is not specified. You should specify child class.
Association name is invalid. You should specify valid association name.
Association is not mapped. You should map the association.
Association End is not mapped. You should map the association End.
|
A base class is not specified for the inheritance. You should specify a base class for the inheritance.
A derived class is not specified for the inheritance. You should specify a derived class for the inheritance.
Parent class has lower access than child class. For example, Parent class is Private, and child class is Public. Change Access property for Parent or Child class, so that parent class has higher or the same access level as child class.
Class in the inheritance has more than one base class. You should specify only one class as a base class.
A member can not be defined in a class because it has been defined in ancestor class. You should map the association.
|