This topic enumerates possible validation errors () and warnings () and provides hints on what you can do with them.
EntityType '{0}.{1}' has no key defined. Define the key for this EntityType. No key is defined for EntityType. You should specify a key for this EntityType. The Name value MyName in the Column element of the Type element MyType is not valid. Property name should be different from class name. Property name is similar to class name. You should specify different names for property and class. The Name value MyName in the Column element of the Type element MyType is not valid. The Name value in the Column element is invalid. You should specify a valid name. Entity type MyType is not mapped. Entity type is not mapped. You should map this entity type. Entity type '{0}' contains a condition on its primary key. Please remove the condition from the mapping. Entity type contains a condition on its primary key. You should remove the condition. Data loss is possible in {0}.{1}. An Entity with Key (PK) will not round-trip when: (PK is in '{0}' EntitySet AND Entity.{1} is not NULL). Data loss is possible due to improperly designed model. Revise the model to eliminate the risk of data loss. Member Mapping specified is not valid. The type '{0}' of member '{1}' in type '{2}.{3}' is not compatible with '{4}' of member '{5}' in type '{2}.{6}'. Member Mapping specified is invalid. Change the type of the column so that it matches the database type. Key Part: '{0}' for type MyType is not valid. All parts of the key must be non nullable. Key part is invalid. You should specify non nullable parts of a key. Key Part: '{0}' for type {1} is not valid. All parts of the key must be nullable. Key part is invalid. You should specify nullable parts of a key. Non-nullable column {0}.{1} in table MyTable is mapped to a nullable entity property. 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. Property Property1 in class MyClass is not mapped. A property in a class is not mapped. You should map the property. Column Column1 in table MyTable must be mapped: It has no default value and is not nullable. A column should be mapped because it has no default value and is non-nullable. You should map the column. Potential runtime violation of table MyTable's keys ({1}): Columns ({1}) are mapped to EntitySet {2}Set's properties ({3}) on the conceptual side but they do not form the EntitySet's key properties ({4}). EntitySet's properties do not form the EntitySet's key properties. Revise the key of the problem entity in the model. All the key properties ({0}) of the EntitySet EntitySet1 must be mapped to all the key properties ({2}) of table MyTable. Some key properties are incorrectly mapped. Revise the key of the problem entity in the model. Validation failed for mapping schema. Schema error information : The mapping for class '{0}' has incomplete content. List of possible elements expected: '{1}'. 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 {0}.{1} that is not supported. Only functions that cannot be composed are supported. A mapping function binding specifies a function that is not supported. Consider rewriting the function. A mapping function binding specifies a function {0}.{1} with an unsupported parameter: Parameter1. Output parameters may only be mapped through the RowsAffectedParameter property. Use result bindings to return values from a function invocation. A mapping function binding specifies a function with an unsupported parameter. Consider rewriting the function. Parameter Mapping specified is not valid. The type MyType of member '{1}' in type '{2}.{3}' is not compatible with '{4}' of parameter Parameter1 in function '{6}.{7}'. Parameter Mapping specified is not valid. Change the member type or change the stored procedure, so that the parameter mapping become valid. A mapping function bindings specifies a function {0}.{1} but does not map the following function parameters: {2}. There's an error in the model. All function parameters must be mapped. Provide mapping for all parameters of the function.
|
The conceptual side property Property1 in association MyAssociation has already been mapped to a storage property with type MyType. If the conceptual side property is mapped to multiple properties in the storage model, make sure that all the properties in the storage model have the same type. 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. Invalid association MyAssociation. A parent class must be specified. A parent class is not specified. You should specify parent class. Invalid association MyAssociation. A child class must be specified. A child class is not specified. You should specify child class. Invalid association name MyAssociation. Association name is invalid. You should specify valid association name. Association MyAssociation is not mapped. Association is not mapped. You should map the association. Association End MyAssociation is not mapped. Association End is not mapped. You should map the association End.
|
Invalid inheritance MyInheritance. A base class must be specified. A base class is not specified for the inheritance. You should specify a base class for the inheritance. Invalid inheritance MyInheritance. A derived class must be specified. A derived class is not specified for the inheritance. You should specify a derived class for the inheritance. Inconsistent accessibility: base class MyClass1 is less accessible than class MyClass. 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. Invalid inheritance MyInheritance. The class can have only one base class. Class in the inheritance has more than one base class. You should specify only one class as a base class. A member named MyMember cannot be defined in class '{1}.{2}'. It is defined in ancestor class '{3}.{4}'.. A member can not be defined in a class because it has been defined in ancestor class. You should map the association.
|