EntityDefinition Class |
Namespace: SD.LLBLGen.Pro.ApplicationCore.EntityModel
The EntityDefinition type exposes the following members.
Name | Description | |
---|---|---|
EntityDefinition(EntityModelGraph) |
Initializes a new instance of the EntityDefinition class.
| |
EntityDefinition(String, String, EntityModelGraph) |
Initializes a new instance of the EntityDefinition class.
|
Name | Description | |
---|---|---|
ContainingProject |
Gets or sets the containing project.
(Overrides GroupableModelElementContainingProject.) | |
DeserializationNewElementFactoryFunc |
Func which creates a new field element for deserialization purposes, which means it skips some actions which are not needed when deserializing.
(Inherited from GroupableModelElement.) | |
DiscriminatorField |
Gets the discriminator field of this entity or null if there's no discriminator field defined locally to this entity, which means it's either
defined in a supertype or not defined.
| |
DiscriminatorValue |
Gets or sets the discriminator value for this entity. Used if this entity is in an InheritanceType of TargetPerEntityHierarchy. Should be
a value of a type compatible with the type of the DiscriminatorField of this entity (if not defined here, it's defined in a supertype).
| |
Error |
Gets an error message indicating what is wrong with this object.
(Inherited from GroupableModelElement.) | |
FieldCount |
Gets the field count.
(Inherited from GroupableModelElement.) | |
Fields |
Gets the fields of this element
(Inherited from GroupableModelElement.) | |
FieldsMappedOntoRelatedFields |
Gets the fields mapped onto related fields.
| |
FullName |
Gets the full name of this element which is the groupname combined with the name
(Inherited from GroupableModelElement.) | |
FullNameForXml |
Gets the full name for XML.
(Inherited from GroupableModelElement.) | |
GroupName |
Gets / sets the name of the group this entity is in.
(Inherited from GroupableModelElement.) | |
IdentifyingFields |
Gets the identifying fields.
| |
IdentifyingFieldsAsString |
Gets the identifying fields as a comma delimited string.
| |
IdentifyingFieldsCount |
Gets the identifying fields count.
| |
InheritanceType |
Gets or sets the type of the inheritance hierarchy this entity is in.
| |
IsAbstract |
Gets / sets the flag whether this entity is abstract.
| |
IsChanged |
Gets or sets the flag to signal that this element has been changed.
(Inherited from GroupableModelElement.) | |
IsHierarchyRoot |
Gets a value indicating whether this instance is a hierarchy root in an inheritance hierarchy.
| |
IsPureManyToManyIntermediate |
Gets a value indicating whether this instance is the intermediate entity for a pure many to many relationship.
| |
IsSubType |
Gets a value indicating whether this instance is a sub type.
| |
Item |
Gets the String with the specified column name.
(Inherited from GroupableModelElement.) | |
LastChangedProperty |
Gets the last changed property name of this object. Use this to check whether changes indeed should be propagated through UI-oriented event channels
(Inherited from GroupableModelElement.) | |
Name |
Gets / sets the name of this entity.
(Inherited from GroupableModelElement.) | |
NameValidatorToUse |
Gets or sets the name validator to use.
(Inherited from GroupableModelElement.) | |
ObjectID |
Gets or sets the object identifier, which is used to identify objects across instances, e.g. through a copy action.
(Inherited from GroupableModelElement.) | |
OutputSettingValues |
Gets the output setting values of this target.
(Inherited from GroupableModelElement.) | |
PotentialIdentifyingFields |
Gets the potential identifying fields.
| |
SuppressEvents |
Gets or sets a value indicating whether events should be suppressed related to this entity base element (true) or not (false).
(Inherited from GroupableModelElement.) | |
TargetElementType |
Gets the target element type of this target.
(Inherited from GroupableModelElement.) | |
UniqueConstraints |
Gets the list of unique constraints.
(Inherited from EntityBaseElement.) |
Name | Description | |
---|---|---|
_member_ValueChangedTValue |
Handles the ValueChanged event of a member variable which is a commandifiedmember.
(Inherited from GroupableModelElement.) | |
BindEventHandlers |
Binds the event handlers.
(Overrides GroupableModelElementBindEventHandlers.) | |
CheckIfFieldsCanBeBouncedToLocalFields |
Checks if the fields can be bounced to local fields. This is true if the fields have a valuetype as type.
(Inherited from EntityBaseElement.) | |
CheckIfFieldsCanBeConvertedToValueType |
Checks if the fields specified can be converted to a value type, which is then used in a new field to replace the specified field(s).
(Inherited from EntityBaseElement.) | |
CheckIfFieldsCanBeMovedToSuperSubType |
Checks if the fields specified can be moved to a super or subtype
(Overrides GroupableModelElementCheckIfFieldsCanBeMovedToSuperSubType(ListFieldElement).) | |
ClearErrors |
Clears the errors set in this object.
(Inherited from GroupableModelElement.) | |
CreateAndAddFkFieldFromPkField |
Creates and adds a new fk field based on the pk field specified
| |
CreateFieldElement |
Creates a new field element.
(Inherited from GroupableModelElement.) | |
CreateSourceLocationDataObject |
Creates the source location data object.
(Overrides GroupableModelElementCreateSourceLocationDataObject.) | |
CreateValidators |
Creates the field name validator for the fields
(Overrides EntityBaseElementCreateValidators(Project).) | |
DeserializeAdditionalAttributes |
Deserializes the additional attributes from the root element
(Overrides GroupableModelElementDeserializeAdditionalAttributes(XmlReader, Project).) | |
DeserializeAdditionalData |
Deserializes additional data from the reader specified. Usable for derived classes which have additional information to deserialize
(Overrides EntityBaseElementDeserializeAdditionalData(XmlReader, Project).) | |
DeserializeFromReader |
Deserializes the data for this class from the xml reader passed in
(Overrides GroupableModelElementDeserializeFromReader(XmlReader, Project).) | |
DetermineIfElementShouldHaveFieldOrdering |
Method which determines whether this element should have field ordering (true) or not (false). It returns the value for the
UseCustomFieldOrderingOnNewElements project setting, if obtainable, otherwise false.
(Overrides GroupableModelElementDetermineIfElementShouldHaveFieldOrdering.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from 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.) | |
GetAdditionalInterfaces |
Gets the additional interfaces, if applicable, for this element, where the default interfaces are prefiltered with the ignored
interfaces defined in this element. All interface macros are replaced with real names.
(Inherited from GroupableModelElement.) | |
GetAdditionalMappableFields |
Gets the additional mappable fields to return in the call to GetAllMappableFields.
(Overrides GroupableModelElementGetAdditionalMappableFields(Boolean).) | |
GetAdditionalNamesInUseByOwnedElements |
Gets the additional names (in their current form) in use by owned elements.
(Overrides GroupableModelElementGetAdditionalNamesInUseByOwnedElements.) | |
GetAdditionalNamespaces |
Gets the additional namespaces, if applicable, for this element, where the default namespaces are prefiltered with the ignored
namespaces defined in this element. All namespace macros are replaced with real names.
(Inherited from GroupableModelElement.) | |
GetAllContainedOutputSettingValuesTargets |
Returns all outputsettingvaluestargets instances of all contained elements (like fields) of this object.
(Overrides GroupableModelElementGetAllContainedOutputSettingValuesTargets.) | |
GetAllContainingUniqueConstraints |
Gets all the containing unique constraints the passed in field is in.
(Inherited from EntityBaseElement.) | |
GetAllDirectSubTypes |
Gets all direct sub types of this entity. If this entity isn't in an inheritance hierarchy, an empty enumerable is returned.
| |
GetAllFieldsForVisualization |
Gets all fields for visualization. This is a helper routine to get all the fields in this entity (not inherited fields) in the order:
PK fields, normal fields sorted by name ascending, where normal fields is entity fields + fk fields, if there is no field ordering
or
all fields sorted based on field ordering, if there is a field ordering specified.
| |
GetAllFieldsInElement(Boolean) |
Gets all fields (normal fields, identifying fields, foreign key fields) in this element, ordered on field index and then name, ascending.
(Inherited from GroupableModelElement.) | |
GetAllFieldsInElement(Boolean, Boolean) |
Gets all fields (normal fields, identifying fields, foreign key fields) in this element, ordered on fieldindex and then name, ascending.
(Overrides GroupableModelElementGetAllFieldsInElement(Boolean, Boolean).) | |
GetAllFieldsSuitableForUCs |
Gets all fields suitable for unique constraints
(Overrides EntityBaseElementGetAllFieldsSuitableForUCs.) | |
GetAllMappableFields |
Gets all mappable fields (also the ones nested inside valuetypes in fields)
(Inherited from GroupableModelElement.) | |
GetAllMappableFields(Boolean) |
Gets all mappable fields (also the ones nested inside valuetypes in fields)
(Inherited from GroupableModelElement.) | |
GetAllNamesInUseByOwnedElements |
Gets all names (in their current casing) in use by owned elements like fields, navigators, fields mapped onto related fields etc.
(Inherited from GroupableModelElement.) | |
GetAllNavigators |
Gets all navigators of this entity.
| |
GetAllRelationshipsContainingFkField(IFieldElementCore) |
Gets all relationships containing the field as an fk field.
| |
GetAllRelationshipsContainingFkField(IFieldElementCore, Boolean) |
Gets all relationships containing the field as an fk field.
| |
GetAllSubTypes |
Gets all sub types (direct or indirect) of this entity. If this entity isn't in an inheritance hierarchy, an empty enumerable is returned.
| |
GetAttributes |
Gets the attributes, if applicable, for this element, where the default attributes are prefiltered with the ignored
attributes defined in this element. All name macros and $length/$precision/$scale macros are replaced with real values. (if applicable)
(Inherited from GroupableModelElement.) | |
GetElementNameForErrorReporting |
Gets the element name for error reporting.
(Overrides GroupableModelElementGetElementNameForErrorReporting.) | |
GetElementNameForXml |
Gets the element name for XML. This name is used to produce the element containing the data of this entitybaseelement.
(Overrides EntityBaseElementGetElementNameForXml.) | |
GetFieldNameStripPattern |
Gets the field name strip pattern.
(Overrides GroupableModelElementGetFieldNameStripPattern(ProjectProperties).) | |
GetFkNavigatorForFirstRelationshipContainingFkField |
Gets the FK navigator mapped on the first relationship containing the specified FK field as an fk field. If the field isn't an FK field an empty string is returned.
Does check inherited relationships as well.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetInheritedMappableFields |
Gets the inherited mappable fields to return in the call to GetAllMappableFields
(Overrides GroupableModelElementGetInheritedMappableFields.) | |
GetPotentialDiscriminatorFields |
Gets the discriminator field candidates from the list of fields in this entity
| |
GetRealStringSettingValueWithMacrosResolved |
Gets the real setting value of the setting with the name specified as string. Also resolves any macros defined in the value (if any) to real values.
(Inherited from GroupableModelElement.) | |
GetSuperType |
Gets the super-type of this entity, if it's in an inheritance hierarhcy, null otherwise
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HandleFieldIndexesUpdated |
Handles the field indexes updated.
(Overrides GroupableModelElementHandleFieldIndexesUpdated.) | |
HandleFieldInFieldsChanged |
Handles the field in fields changed.
(Overrides GroupableModelElementHandleFieldInFieldsChanged(ElementInListChangedEventArgsFieldElementChangeType, FieldElement).) | |
HandleFieldRemoved |
Handles the field removed.
(Overrides GroupableModelElementHandleFieldRemoved(CollectionElementRemovedEventArgsFieldElement).) | |
HandleFieldsListChanged |
Handles the fields list changed event. Checks unique constraint.
(Overrides GroupableModelElementHandleFieldsListChanged(ListChangedEventArgs).) | |
HandleUnhandledMarkElementAsChanged |
Handles the unhandled mark element as changed.
(Overrides GroupableModelElementHandleUnhandledMarkElementAsChanged(GroupableModelElementChangeType).) | |
MarkElementAsChanged |
Marks the element as changed.
(Inherited from GroupableModelElement.) | |
MarkElementAsRemoved |
Marks the element as removed, by raising the ElementRemoved event.
(Inherited from GroupableModelElement.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnGroupableModelElementChanged |
Raises the EntityElementChanged event.
(Overrides GroupableModelElementOnGroupableModelElementChanged(GroupableModelElementChangeType).) | |
OnPropertyChanged |
Called when a property got changed.
(Inherited from GroupableModelElement.) | |
PerformFixDuplicateNamesAfterRefresh |
Performs the fix duplicate names after refresh.
(Overrides GroupableModelElementPerformFixDuplicateNamesAfterRefresh(LogNode).) | |
PopulateAndMap |
Populates the element with new fields based on the fields to map specified and creates mappings for them in the passed in mapping.
(Inherited from GroupableModelElement.) | |
PropagateValidatorsToLoadedObjects |
Propagates the validators to loaded objects. This routine is called after the validators are created after the object and its containing objects
have been loaded successfully.
(Overrides EntityBaseElementPropagateValidatorsToLoadedObjects.) | |
RemoveFieldElement |
Removes the field element passed in from the list it is located in
(Inherited from GroupableModelElement.) | |
RemoveFieldElementFromAdditionalContainers |
Removes the field element from additional containers.
(Inherited from GroupableModelElement.) | |
SerializeAdditionalAttributes |
Serializes the additional attributes into the root element
(Overrides GroupableModelElementSerializeAdditionalAttributes(ISerializer).) | |
SerializeAdditionalData |
Serializes additional content to the writer specified. Usable for derived classes which have additional information to serialize
(Overrides EntityBaseElementSerializeAdditionalData(ISerializer).) | |
SerializeToWriter |
Serializes the data in this class to the serializer passed in
(Inherited from GroupableModelElement.) | |
SetDiscriminatorField |
Sets the discriminator field.
| |
SetIdentifyingFields |
Sets the identifying fields of this entity definition to the list of fields specified
| |
SetNewFieldOrder |
Sets the new field order to the order specified in fieldsInCorrectFieldOrder.
(Inherited from GroupableModelElement.) | |
ToString | (Inherited from GroupableModelElement.) | |
UnbindEventHandlers |
Unbinds the event handlers.
(Overrides GroupableModelElementUnbindEventHandlers.) | |
UpdateOutputSettingValuesContainersWithDefaults |
Updates the output setting values containers with defaults.
(Overrides GroupableModelElementUpdateOutputSettingValuesContainersWithDefaults(OutputSettingValuesContainer).) | |
Validate |
Validates this instance. Reports errors along the way using the message system.
(Overrides EntityBaseElementValidate(Project, Boolean).) |
Name | Description | |
---|---|---|
GroupableModelElementChanged |
Event which is raised when the definition of this GroupableModelElement has been changed. What has changed is enclosed inside the event args.
(Inherited from GroupableModelElement.) | |
HasBeenChanged |
Raised when the implementing element has been changed
(Inherited from GroupableModelElement.) | |
HasBeenRemoved |
Raised when the implementing element has been removed from its container
(Inherited from GroupableModelElement.) | |
PropertyChanged |
Occurs when a property value changes. (INotifyPropertyChanged)
(Inherited from GroupableModelElement.) |
Name | Description | |
---|---|---|
IGroupableElementElementType |
Gets the element type of this element.
(Inherited from GroupableModelElement.) | |
IGroupableElementElementTypeName |
Gets the type name of the element, e.g. 'Entity Definition', 'Typed List' etc.
(Inherited from GroupableModelElement.) | |
IGroupableElementFixDuplicateNamesAfterRefresh |
Fixes the duplicate names after refresh.
(Inherited from GroupableModelElement.) | |
IOutputSettingValuesTargetTargetName |
Gets the name of the element.
(Inherited from GroupableModelElement.) |