Click or drag to resize

MappableFieldWrapper Class

Wrapper class which wraps an IMappableField and the complete path to reach this field from the field in the entity.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ApplicationCore.MappingMappableFieldWrapper

Namespace:  SD.LLBLGen.Pro.ApplicationCore.Mapping
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public class MappableFieldWrapper : INotifyPropertyChanged, 
	IEquatable<MappableFieldWrapper>

The MappableFieldWrapper type exposes the following members.

Constructors
  NameDescription
Public methodMappableFieldWrapper(IMappableField)
Initializes a new instance of the MappableFieldWrapper class.
Public methodMappableFieldWrapper(IMappableField, MappableFieldWrapper)
Initializes a new instance of the MappableFieldWrapper class.
Top
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
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.)
Public methodGetPathAsString
Gets the path as string with each path element separated by the separator specified.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
Top
Explicit Interface Implementations
See Also