DBForeignKeyConstraint Class |
Namespace: SD.LLBLGen.Pro.DBDriverCore
The DBForeignKeyConstraint type exposes the following members.
Name | Description | |
---|---|---|
DBForeignKeyConstraint |
Initializes a new instance of the DBForeignKeyConstraint class.
| |
DBForeignKeyConstraint(String) |
Initializes a new instance of the DBForeignKeyConstraint class.
|
Name | Description | |
---|---|---|
AppliesToTable |
The DBTable instance this constraint applies to, which is the 'FK side'
| |
ConstraintName |
The literal name for the constraint.
| |
CreatedByDesigner |
Gets or sets a value indicating whether this element is created by the designer from mappings (true) or that it was created from meta-data retrieved
from the database (false, default).
(Inherited from DBElementBase.) | |
CustomProperties |
Gets the Custom properties (name - value pairs) read from the schema.
(Inherited from DBElementBase.) | |
DeleteRuleAction |
Gets or sets the update rule action.
| |
Deserializing |
Gets or sets a value indicating whether this instance is deserializing.
(Inherited from DBElementBase.) | |
ErrorLog |
Gets the complete ErrorLog for this object.
(Inherited from DBElementBase.) | |
FkFieldsFormFullPk |
Gets a value indicating whether the fk fields together form the PK of the table this FK constraint applies to.
| |
ForeignKeyFields |
List of DBTableField instances of the foreign key in this relation. DBTableField
instances have an DBTable reference for upward navigation. FK constraints which span multiple
catalogs are not supported. The fields in the foreign key correspond with the fields in the primary key based on the index,
thus the field on position 0 in the ForeignKeyFields array, corresponds with the field on position 0 in the PrimaryKeyFields
array.
| |
FullName |
Gets the full name.
(Inherited from DBElementBase.) | |
FullNameForXml |
Gets the full name for XML. This is a name which has the format schemaname:elementname or schemaname:elementname:fieldname. Used for references.
(Overrides DBElementBaseFullNameForXml.) | |
FullNameForXmlWithCatalog |
Gets the full name for XML. This is a name which has the format catalogname:schemaname:elementname or catalogname:schemaname:elementname:fieldname. Used for references.
(Inherited from DBElementBase.) | |
MarkedForDeletion |
Gets or sets a value indicating whether this element is marked for deletion.
(Inherited from DBElementBase.) | |
PKSide |
Gets the PK side of this FK. FK side is 'AppliesToTable'
| |
PrimaryKeyFields |
List of DBTableField instances of the primary key in this relation. DBTableField
instances have an DBTable reference for upward navigation. FK constraints which span multiple
catalogs are not supported. Single column primary keys will have just 1 entry in this array, multi-column primary
keys will have per column one entry.
| |
TypeOfDBElement |
Gets the type of DB element in the form of a ContainedElementType value.
(Overrides DBElementBaseTypeOfDBElement.) | |
UpdateRuleAction |
Gets or sets the update rule action.
|
Name | Description | |
---|---|---|
CheckIfIsValid |
Determines whether this instance is valid. Valid means that the constraint isn't marked for deletion and also none of the fields in the Fk constraint
is marked for deletion. Will return false if IsCorrect returns false
| |
DeserializeAdditionalAttributes |
Deserializes attributes of this element's base class from the reader.
(Inherited from DBElementBase.) | |
DeserializeFromReader |
Deserializes the data of this instance from reader.
| |
DetermineRelationshipType |
Determines the relationship type formed by this foreign key constraint.
| |
Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Overrides DBElementBaseDispose.) | |
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.) | |
GetFkFieldRelatedToPkField |
Gets the fk field related to the pk field specified
| |
GetFkPkFieldPairs |
Gets the fkfield - pkfield pairs. Each pair has for Value1 the fk field and for Value2 the pk field.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUniqueConstraintUsedByFk |
Gets the unique constraint used by fk. If this FK constraint is a 1:1 fk constraint, and the Fk side is not a PK, it has to be that the FK constraint
uses a unique constraint in the FK table which is equal to the set of FK fields. If that's the case, this method returns that unique constraint, otherwise
null.
| |
HandleContainedListChangedTChangeType |
Handles the contained list changed.
(Inherited from DBElementBase.) | |
LogError |
Logs an error in the ErrorLog structure of this object.
(Inherited from DBElementBase.) | |
LogWarning |
Logs the description as a warning.
(Inherited from DBElementBase.) | |
MarkElementAsChangedTChangeType |
Marks the element as changed.
(Inherited from DBElementBase.) | |
MarkElementAsRemoved |
Marks the element as removed, which raises the ElementRemoved event.
(Inherited from DBElementBase.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnContainedElementAdded |
Called when this object received an event of type ContainedElementAdded
(Inherited from DBElementBase.) | |
OnContainedElementChanged |
Called when this object received an event of type ContainedElementChanged
(Inherited from DBElementBase.) | |
OnContainedElementRemoved |
Called when this object received an event of type ContainedElementRemoved
(Inherited from DBElementBase.) | |
OnPropertyChanged |
Raises the PropertyChanged event.
(Inherited from DBElementBase.) | |
PerformAdditionalContainedElementChangedWork |
Performs the additional contained element changed work. Override if additional work has to be done after the OnContainedElementChanged method has run.
(Inherited from DBElementBase.) | |
ResetErrorLog |
Resets the Error Log for this object to an empty list.
(Inherited from DBElementBase.) | |
SerializeAdditionalAttributes |
Serializes the additional attributes.
(Inherited from DBElementBase.) | |
SerializeToWriter |
Serializes the data in this class to the serializer passed in
| |
SetNewPkSide |
Sets the new pk side. If there's no way the specified pk side can be made the pk side of this FK, the PK side will be empty (null). Calling this method
always resets the current PK side of this FK.
| |
ToString | (Overrides ObjectToString.) |
Name | Description | |
---|---|---|
ContainedElementAdded |
Raised when an element was added to a collection (indirectly) contained in this element
(Inherited from DBElementBase.) | |
ContainedElementChanged |
Raised when an element contained in this element was changed.
(Inherited from DBElementBase.) | |
ContainedElementRemoved |
Raised when an element was removed from a collection (indirectly) contained in this element
(Inherited from DBElementBase.) | |
HasBeenChanged |
Raised when the implementing element has been changed
(Inherited from DBElementBase.) | |
HasBeenRemoved |
Raised when the implementing element has been removed from its container
(Inherited from DBElementBase.) | |
PropertyChanged |
Occurs when a property value changes. (INotifyPropertyChanged)
(Inherited from DBElementBase.) |
Name | Description | |
---|---|---|
IDBRenameableElementIsRenamed |
Gets a value indicating whether this instance is renamed to a new value.
| |
IDBRenameableElementNewName |
Gets the new name, if the element was renamed, otherwise the original name
| |
IDBRenameableElementOriginalName |
Gets the original name of the element.
|