MappableFieldWrapper Class |
Namespace: SD.LLBLGen.Pro.ApplicationCore.Mapping
The MappableFieldWrapper type exposes the following members.
Name | Description | |
---|---|---|
MappableFieldWrapper(IMappableField) |
Initializes a new instance of the MappableFieldWrapper class.
| |
MappableFieldWrapper(IMappableField, MappableFieldWrapper) |
Initializes a new instance of the MappableFieldWrapper class.
|
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).
|
Name | Description | |
---|---|---|
Equals | (Overrides ObjectEquals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode |
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.) | |
GetPathAsString |
Gets the path as string with each path element separated by the separator specified.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
PropertyChanged |
Occurs when a property value changes.
|
Name | Description | |
---|---|---|
IEquatableMappableFieldWrapperEquals |
Indicates whether the current object is equal to another object of the same type.
|