Click or drag to resize

GroupableModelElementMapping Class

Class which defines the mappings between a groupable model element and one view or one table.
Inheritance Hierarchy

Namespace:  SD.LLBLGen.Pro.ApplicationCore.Mapping
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.8.0.0 (5.8.21.0208)
Syntax
public abstract class GroupableModelElementMapping : IDataErrorInfo, 
	IDetailedNotifyElementChanged<GroupableModelElementMappingChangeType, GroupableModelElementMapping>, ISerializableToXml, INotifyAsRemoved

The GroupableModelElementMapping type exposes the following members.

Constructors
  NameDescription
Protected methodGroupableModelElementMapping(GroupableModelElement, String, MappingType)
Initializes a new instance of the GroupableModelElementMapping class.
Protected methodGroupableModelElementMapping(GroupableModelElement, IProjectElementMapTargetElement, String, Boolean, MappingType, ActionCombinationType)
Initializes a new instance of the GroupableModelElementMapping class.
Top
Properties
  NameDescription
Public propertyActionCombination
Gets or sets the action combination for the entity mapped onto this target
Public propertyDriverID
Gets the driver ID of the database the mapping is for.
Public propertyError
Gets an error message indicating what is wrong with this object. The default is an empty string ("")
Public propertyFieldMappings
Gets the entity field mappings.
Public propertyIsAutoCreated
Gets or sets a value indicating whether this instance is auto created by code or manually by the user. If true, code controls the existence of this mapping object, e.g. because it's contained inside another mapping (return element mapping of TVF call) Default is false.
Public propertyIsValid
Gets a value indicating whether this instance is valid.
Public propertyItem
Gets the String with the specified column name.
Protected propertyLoggedErrors
Gets the logged errors.
Public propertyMappedElement
Gets the groupable model element mapped by this mapping.
Public propertyMappedTarget
Gets /sets the mapped targets.
Public propertyTypeOfMapping
Gets the type of mapping.
Public propertyUsableTargetTypes
Gets the list of usable target types. This list can be used to filter out targets which aren't a valuable target for this mapping.
Top
Methods
  NameDescription
Protected methodAdditionalValidations
Performs additional validations
Protected methodBindEvents
Binds the events.
Protected methodCheckAndCorrectFieldMappings
Checks whether there are any field mappings which are orphaned or any fields which don't have a mapping. An orphaned mapping means a mapping of a mappable field which isn't a mappable field anymore (e.g. it's deleted, has now a value type as its type)). All orphaned mappings are removed. All fields which don't have a mapping will get one.
Public methodCheckIfAutoMapToNewFieldsIsNecessary
Checks if an auto map to new target fields action is necessary on this mapping and returns true if it is, false otherwise
Protected methodCreateNewFieldMapping
Creates the new field mapping between the field specified and the specified target and adds it to this mapping's list of fieldmappings
Protected methodDeserializeAdditionalAttributes
Deserializes the additional attributes.
Protected methodDeserializeAdditionalData
Deserializes the additional data a derived class might need. The localReader is positioned on the element which wasn't recognized by the groupablemodelelement class.
Public methodDeserializeFromReader
Deserializes the entity mapping data from the reader which is positioned on the EntityMapping element.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from 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 methodGetAllFieldMapTargetElements
Gets all entity field map target elements (fields) from all targets in this mapping
Public methodGetAllIdentifyingFieldMappings
Gets all identifying field mappings which have a mapped target
Public methodGetAllMappedFieldsForGivenTargets
Gets all mapped fields for given targets.
Public methodGetAllMappedFieldTargets
Gets all mapped field targets, which are the fields in the target which are mapped in field mappings in this mapping
Public methodGetAllUnmappedTargetElements
Gets all unmapped target elements, which are all elements in the mapped target which don't have a mapping in a fieldmapping
Protected methodGetElementNameForXml
Gets the element name for XML.
Public methodGetFieldMappingOfField
Gets the first field mapping of field found
Protected methodGetFieldStripPatternForMappedElement
Gets the field strip pattern for mapped element as different mapped elements require different strip patterns
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetMappedElementAttributeNameForXml
Gets the mapped element attribute name for XML.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHandleGroupableModelElementChanged
Handles the groupable model element changed.
Protected methodMarkGroupableModelElementMappingAsChanged
Marks the groupable model element mapping as changed.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodSerializeAdditionalAttributes
Serializes the additional attributes.
Protected methodSerializeAdditionalData
Serializes the additional data a derived class might have.
Public methodSerializeToWriter
Serializes the data in this class to the serializer passed in
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodUnbindEvents
Unbinds the events.
Public methodValidate
Validates this instance.
Public methodValidate(Action, String)
Validates this instance.
Top
Events
  NameDescription
Public eventDetailedElementChanged
Raised when the implementing object's data changed. What has changed is enclosed in the event arguments. Similar event as INotifyAsChanged.ElementChanged however this variant has detailed information about which change took place.
Public eventHasBeenRemoved
Raised when the implementing element has been removed from its container
Top
See Also