Click or drag to resize
MappableFieldWrapper Properties

The MappableFieldWrapper type exposes the following members.

Properties
  NameDescription
Public propertyFieldIndexForVisualization
Gets the index of the field on path[0]
Public propertyIsOptional
Gets a value indicating whether the mappable field is optional in the entity its defined in. If the wrapped field is a field in a value type, the field's IsOptional is returned, as that's the value dictating if the field is optional in the entity the instance is defined in. This was previously different (the valuetyped field dictated the nullability of its contained fields, from the perspective of the entity) but this gives problems with nested valuetypes which contain nullable fields but are themselves not nullable. It's a non-solvable problem however, so we went with the situation with the least friction. The problem is not solvable because the situation entity.ValueTypedField.OptionalValueTypedField.NormalNonOptionalField, has NormalNonOptionalField as not optional, however because it's containing object, OptionalValueTypedField is optional (supported in e.g. NHibernate, not in EF), the field onto which NormalNonOptionalField is mapped on has to be nullable in the database as it can contain no value, from the perspective of the entity.
Public propertyIsPartOfIdentifyingFields
Gets a value indicating whether the mappable field is part of the identifying fields in the entity its defined in. If the wrapped field is a field in a value type, the valuetype instance' IsPartOfIdentifyingFields is returned, as that's the value dictating if the field is part of the identifying fields in the entity the instance is defined in.
Public propertyPath
Gets the path. The field name is also part of the path
Public propertyPathAsString
Gets the path as string.
Public propertyPathAsStringForTargetFieldName
Gets the path as string for target field name.
Public propertyPathAsStringForXml
Gets the path as string for XML, which is the full path with ':' as separator.
Public propertyReferredField
Gets the referred field.
Public propertyRepresentsValueTypeContainedField
Gets a value indicating whether the field represented is a field inside a valuetype (true) or not (entity field, false).
Top
See Also