MappableFieldWrapper Properties |
The MappableFieldWrapper type exposes the following members.
Name | Description | |
---|---|---|
FieldIndexForVisualization |
Gets the index of the field on path[0]
| |
IsOptional |
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.
| |
IsPartOfIdentifyingFields |
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.
| |
Path |
Gets the path. The field name is also part of the path
| |
PathAsString |
Gets the path as string.
| |
PathAsStringForTargetFieldName |
Gets the path as string for target field name.
| |
PathAsStringForXml |
Gets the path as string for XML, which is the full path with ':' as separator.
| |
ReferredField |
Gets the referred field.
| |
RepresentsValueTypeContainedField |
Gets a value indicating whether the field represented is a field inside a valuetype (true) or not (entity field, false).
|