Click or drag to resize
EntityMapping Class
Class which defines the mappings between an entity 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.3.0)
public class EntityMapping : GroupableModelElementMapping

The EntityMapping type exposes the following members.

Public methodEntityMapping
Initializes a new instance of the EntityMapping class.
Public propertyActionCombination
Gets or sets the action combination for the entity mapped onto this target
(Inherited from GroupableModelElementMapping.)
Public propertyDriverID
Gets the driver ID of the database the mapping is for.
(Inherited from GroupableModelElementMapping.)
Public propertyError
Gets an error message indicating what is wrong with this object. The default is an empty string ("")
(Inherited from GroupableModelElementMapping.)
Public propertyFieldMappings
Gets the entity field mappings.
(Inherited from GroupableModelElementMapping.)
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.
(Inherited from GroupableModelElementMapping.)
Public propertyIsValid
Gets a value indicating whether this instance is valid.
(Inherited from GroupableModelElementMapping.)
Public propertyItem
Gets the String with the specified column name.
(Inherited from GroupableModelElementMapping.)
Protected propertyLoggedErrors
Gets the logged errors.
(Inherited from GroupableModelElementMapping.)
Public propertyMappedElement
Gets the groupable model element mapped by this mapping.
(Inherited from GroupableModelElementMapping.)
Public propertyMappedEntity
Gets the mapped entity.
Public propertyMappedTarget
Gets /sets the mapped targets.
(Inherited from GroupableModelElementMapping.)
Public propertyTypeOfMapping
Gets the type of mapping.
(Inherited from GroupableModelElementMapping.)
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.
(Overrides GroupableModelElementMappingUsableTargetTypes.)
Protected methodAdditionalValidations
Validates this instance.
(Overrides GroupableModelElementMappingAdditionalValidations(Action, String).)
Protected methodBindEvents
Binds the events.
(Inherited from GroupableModelElementMapping.)
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.
(Inherited from GroupableModelElementMapping.)
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
(Inherited from GroupableModelElementMapping.)
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
(Overrides GroupableModelElementMappingCreateNewFieldMapping(IMappableField, IProjectElementFieldMapTargetElement, Project, TypeConverterDefinition).)
Protected methodDeserializeAdditionalAttributes
Deserializes the additional attributes.
(Overrides GroupableModelElementMappingDeserializeAdditionalAttributes(XmlReader).)
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.
(Inherited from GroupableModelElementMapping.)
Public methodDeserializeFromReader
Deserializes the entity mapping data from the reader which is positioned on the EntityMapping element.
(Inherited from GroupableModelElementMapping.)
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 methodGetAllFieldMappingsWhichContainASequence
Gets all field mappings which contain A sequence.
Public methodGetAllFieldMapTargetElements
Gets all entity field map target elements (fields) from all targets in this mapping
(Inherited from GroupableModelElementMapping.)
Public methodGetAllIdentifyingFieldMappings
Gets all identifying field mappings which have a mapped target
(Inherited from GroupableModelElementMapping.)
Public methodGetAllMappableFieldsWhichContainASequence
Gets all mappable fields which mappings contain a sequence.
Public methodGetAllMappedFieldsForGivenTargets
Gets all mapped fields for given targets.
(Inherited from GroupableModelElementMapping.)
Public methodGetAllMappedFieldTargets
Gets all mapped field targets, which are the fields in the target which are mapped in field mappings in this mapping
(Inherited from GroupableModelElementMapping.)
Public methodGetAllPotentialSequences
Gets all potential sequences. The schema sequences are sorted on Name if they're in the same schema as the target, otherwise on FullNameWithCatalog, and present after the first entry which is 'null' and the system sequences which are present after that. The schema sequences from the schema of the target are added first, and the ones from other catalogs/schemas are added after that.
Public methodGetAllUnmappedTargetElements
Gets all unmapped target elements, which are all elements in the mapped target which don't have a mapping in a fieldmapping
(Inherited from GroupableModelElementMapping.)
Protected methodGetElementNameForXml
Gets the element name for XML.
(Overrides GroupableModelElementMappingGetElementNameForXml.)
Public methodGetFieldMappingOfField
Gets the first field mapping of field found
(Inherited from GroupableModelElementMapping.)
Protected methodGetFieldStripPatternForMappedElement
Gets the field strip pattern for mapped element as different mapped elements require different strip patterns
(Overrides GroupableModelElementMappingGetFieldStripPatternForMappedElement(ProjectProperties).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetMappedElementAttributeNameForXml
Gets the mapped element attribute name for XML.
(Overrides GroupableModelElementMappingGetMappedElementAttributeNameForXml.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHandleGroupableModelElementChanged
Handles the groupable model element changed.
(Overrides GroupableModelElementMappingHandleGroupableModelElementChanged(GroupableModelElementChangeType).)
Protected methodMarkGroupableModelElementMappingAsChanged
Marks the groupable model element mapping as changed.
(Inherited from GroupableModelElementMapping.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodSerializeAdditionalAttributes
Serializes the additional attributes.
(Overrides GroupableModelElementMappingSerializeAdditionalAttributes(ISerializer).)
Protected methodSerializeAdditionalData
Serializes the additional data a derived class might have.
(Inherited from GroupableModelElementMapping.)
Public methodSerializeToWriter
Serializes the data in this class to the serializer passed in
(Inherited from GroupableModelElementMapping.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodUnbindEvents
Unbinds the events.
(Inherited from GroupableModelElementMapping.)
Public methodValidate
Validates this instance.
(Inherited from GroupableModelElementMapping.)
Public methodValidate(Action, String)
Validates this instance.
(Inherited from GroupableModelElementMapping.)
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.
(Inherited from GroupableModelElementMapping.)
Public eventHasBeenRemoved
Raised when the implementing element has been removed from its container
(Inherited from GroupableModelElementMapping.)
See Also