Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Closed Task: API Review: Conventions exception messages [1416]

$
0
0
__LightweightEntityConfiguration_TypeMismatch__

The type '{0}' is invalid. The specified type must derive from '{1}'.

Remove

__LightweightEntityConfiguration_NonScalarProperty__

The property '{0}' cannot be configured. Only scalar properties can be configured using lightweight conventions.

The property '{0}' cannot be configured. Only scalar properties can be configured using the Property method.

__LightweightEntityConfiguration_ConfigurationConflict_ComplexType__

If a type is mapped as a Complex Type the only configuration that can be specified is the property mapping.

Calling '{0}' is not valid for type '{1}' because it is configured as a complex type. '{0}' is only allowed when configuring entity types.

__LightweightEntityConfiguration_ConfigurationConflict_IgnoreType__

If a type is 'Ignored' no other configuration can be specified.

Calling '{0}' is not valid for type '{1}' because it has been excluded from the model.

__LightweightEntityConfiguration_InvalidNavigationProperty__

The property '{0}' cannot be configured as a navigation property. The property has to be of a valid entity type and the property should have non-abstract getter and setter. For collection properties the type must implement ICollection of T where T is a valid entity type.

The property '{0}' cannot be configured as a navigation property. The property must be a valid entity type and the property should have a non-abstract getter and setter. For collection properties the type must implement ICollection<T> where T is a valid entity type.


__LightweightEntityConfiguration_InvalidInverseNavigationProperty__

The entity type '{0}' that the navigation property '{1}' is declared on is not the same as the type '{2}' referred by the inverse navigation property '{3}'.

The entity type '{0}' on which the navigation property '{1}' is declared is not the same as the type '{2}' referred to by the inverse navigation property '{3}'.

__LightweightEntityConfiguration_MismatchedInverseNavigationProperty__

The entity type '{0}' that the navigation property '{1}' refers to is not the same as the type '{2}' on which the inverse navigation property '{3}' is declared.

The entity type '{0}' to which the navigation property '{1}' refers is not the same as the type '{2}' on which the inverse navigation property '{3}' is declared.


__LightweightNavigationPropertyConfiguration_IncompatibleMultiplicity__

Multiplicity '{0}' is not compatible with the property '{1}' of type '{2}'.

Multiplicity '{0}' is not compatible with the property '{1}' of type '{2}'.

__LightweightNavigationPropertyConfiguration_InvalidMultiplicity__

Multiplicity '{0}' is not valid. Multiplicity must be: '*', '0..1', or '1'.

Multiplicity '{0}' is not valid. Multiplicity must be: '*', '0..1', or '1'.

__LightweightPrimitivePropertyConfiguration_NonNullableProperty__

The property {0} of type {1} cannot be marked as optional because it can't be assigned a null value.

The property '{0}' of type '{1}' cannot be marked as optional because it cannot be assigned a null value.

__LightweightPrimitivePropertyConfiguration_DateTimeScale__

The scale cannot be set on the DateTime property '{0}', only the precision should be specified.

Scale cannot be configured for the DateTime property '{0}', only precision can be configured for DateTime properties.

__LightweightPrimitivePropertyConfiguration_DecimalNoScale__

To set the precision on the decimal property '{0}' the scale must also be specified.

Only precision was configured for Decimal property '{0}'. Both precision and scale must be configured for Decimal properties.

__LightweightPrimitivePropertyConfiguration_HasPrecisionNonDateTime__

The property '{0}' is not of DateTime type. Precision can only be set on DateTime properties.

Precision without scale has been configured for property '{0}'. Precision without scale can only be configured for DateTime properties.


__LightweightPrimitivePropertyConfiguration_HasPrecisionNonDecimal__

The property '{0}' is not of Decimal type. Precision and scale can only be set on Decimal properties.

Precision and scale have been configured for property '{0}'. Precision and scale can only be configured for Decimal properties.

__LightweightPrimitivePropertyConfiguration_IsRowVersionNonBinary__

The property '{0}' is not of byte[] type. IsRowVersion can only be called on byte[] properties.

The property '{0}' is not a Byte array. IsRowVersion can only be configured for Byte array properties.

__LightweightPrimitivePropertyConfiguration_IsUnicodeNonString__

The property '{0}' is not of String type. IsUnicode can only be called on String properties.

The property '{0}' is not a String. IsUnicode can only be configured on String properties.

__LightweightPrimitivePropertyConfiguration_NonLength__

Length cannot be set for the property '{0}'. Length can only be set for properties of String or byte[] types.

The property '{0}' is not a String or Byte array. Length can only be configured for String and Byte array properties.

__ConventionsConfiguration_InvalidConventionType__

The specified convention of type '{0}' is not a valid convention. Conventions must derive from Convention or implement IStoreConvention or IConceptualConvention.


__ConventionsConfiguration_ConventionTypeMissmatch__

The specified convention '{0}' cannot be added before or after '{1}'. Both conventions must share the same base class (Convention) or implement the same interface (IStoreModelConvention or IConceptualModelConvention).

Comments: Confirmed

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>