Errors and Warnings

This topic enumerates possible validation errors (images_ErrorIcon) and warnings (images_WarningIcon) and provides hints on what you can do with them.

 

ExpandedToggleIcon        Entity class:

images_ErrorIcon 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.

images_ErrorIcon 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.

images_ErrorIcon 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.

images_ErrorIcon Entity type MyType is not mapped.

Entity type is not mapped.

You should map this entity type.

images_ErrorIcon 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.

images_ErrorIcon 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.

images_ErrorIcon 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.

images_ErrorIcon 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.

images_ErrorIcon 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.

images_ErrorIcon 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.

images_ErrorIcon Property Property1 in class MyClass is not mapped.

A property in a class is not mapped.

You should map the property.

images_ErrorIcon 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.

images_ErrorIcon 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.

images_ErrorIcon 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.

images_ErrorIcon 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.

 

ExpandedToggleIcon        Entity class method mapping:

images_ErrorIcon 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.

images_ErrorIcon 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.

images_ErrorIcon 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.

images_ErrorIcon 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.

 

ExpandedToggleIcon        Entity association:

images_ErrorIcon 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.

images_ErrorIcon Invalid association MyAssociation. A parent class must be specified.

A parent class is not specified.

You should specify parent class.

images_ErrorIcon Invalid association MyAssociation. A child class must be specified.

A child class is not specified.

You should specify child class.

images_ErrorIcon Invalid association name MyAssociation.

Association name is invalid.

You should specify valid association name.

images_ErrorIcon Association MyAssociation is not mapped.

Association is not mapped.

You should map the association.

images_ErrorIcon Association End MyAssociation is not mapped.

Association End is not mapped.

You should map the association End.

 

ExpandedToggleIcon        EntityInheritance:

images_ErrorIcon 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.

images_ErrorIcon 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.

images_ErrorIcon 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.

images_ErrorIcon 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.

images_ErrorIcon 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.

 

ExpandedToggleIcon        See Also


Send feedback on this topic

© 2008 - 2024 Devart. All rights reserved.