Click or drag to resize

DBTable Methods

The DBTable type exposes the following members.

Methods
  NameDescription
Public methodContainsAnyElementOfType
Determines whether this element directly or indirectly contains at least 1 element of the type specified.
Public methodCreateNewField(DBDriverBase, Int32, String, Int32, Int32, Int32, Boolean)
Creates a new field based on the elements specified. It assumes there are no fields with the name specified already in this target. The field is added at the end of the fields list.
Public methodCreateNewField(DBDriverBase, String, Type, Int32, Int32, Int32, Boolean, Boolean, Int32, LogNode)
Creates a new field based on the elements specified. It assumes there are no fields with the name specified already in this target. The field is added at the end of the fields list.
Public methodCreateNewFkConstraintIfNecessary
Creates a new fk constraint if necessary. Flags all fk constraints which are already formed by the Fk fields as deleted first.
Public methodCreateNewUcConstraintIfNecessary
Creates a new uc constraint if necessary on the fields specified. If there's already an existing UC however it's marked as deleted, it's unmarked as deleted.
Protected methodDeserializeAdditionalAttributes
Deserializes attributes of this element's base class from the reader.
(Inherited from DBElementBase.)
Public methodDeserializeFromReader
Deserializes from reader. Reader is positioned at the Table element
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from DBElementBase.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExclude
Excludes this instance from the project / meta-container it's in.
(Inherited from DBSchemaElement.)
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 methodFindFieldByName(String)
Finds the field with the name specified.
Public methodFindFieldByName(String, Boolean)
Finds the field with the name specified.
Public methodFindFKConstraintByName
Finds the fk constraint with the name specified.
Public methodFindFKConstraintsByFieldSets
Gets the foreign key constraints between the field sets given, or if pkFields isn't specified, defined on the fkFields specified
Public methodFindFKConstraintsByFkFields
Finds the FK constraints defined on the fk fields specified.
Public methodFindUCConstraintByName
Finds the uc constraint with the name specified.
Public methodFindUCConstraintsByFieldSet
Finds the UC constraints defined by the fields specified.
Public methodGetAllFkConstraintsReferencingThisTable
Gets all fk constraints referencing this table.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHandleContainedListChangedTChangeType
Handles the contained list changed.
(Inherited from DBElementBase.)
Public methodLogError
Logs an error in the ErrorLog structure of this object.
(Inherited from DBElementBase.)
Public methodLogWarning
Logs the description as a warning.
(Inherited from DBElementBase.)
Protected methodMarkElementAsChangedTChangeType
Marks the element as changed.
(Inherited from DBElementBase.)
Public methodMarkElementAsRemoved
Marks the element as removed, which raises the ElementRemoved event.
(Inherited from DBElementBase.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnContainedElementAdded
Called when this object received an event of type ContainedElementAdded
(Inherited from DBElementBase.)
Protected methodOnContainedElementChanged
Called when this object received an event of type ContainedElementChanged
(Inherited from DBElementBase.)
Protected methodOnContainedElementRemoved
Called when this object received an event of type ContainedElementRemoved
(Inherited from DBElementBase.)
Protected methodOnPropertyChanged
Raises the PropertyChanged event.
(Inherited from DBElementBase.)
Protected methodPerformAdditionalContainedElementChangedWork
Performs the additional contained element changed work. Override if additional work has to be done after the OnContainedElementChanged method has run.
(Inherited from DBElementBase.)
Public methodRemoveDuplicateUniqueConstraints
Removes all the unique constraints which are duplicates of other unique constraints in the list.
Public methodResetErrorLog
Resets the Error Log for this object to an empty list.
(Inherited from DBElementBase.)
Protected methodSerializeAdditionalAttributes
Serializes the additional attributes.
(Inherited from DBElementBase.)
Public methodSerializeToWriter
Serializes the data in this class to the serializer passed in
Public methodSetDefaultValuesOnFields
Sets the default values on fields.
Public methodSetPkConstraintNameIfNecessary
Sets the pk constraint name if necessary to the name specified, after it's been made unique
Public methodSetPkFields
Sets the pk fields.
Public methodToString
Returns a String that represents the current Object.
(Inherited from DBSchemaElement.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIProjectElementMapTargetElementFindFieldByName(String)
Helper method which will return a reference to a IProjectElementFieldMapTargetElement instance with the given FieldName
Explicit interface implementationPrivate methodIProjectElementMapTargetElementFindFieldByName(String, Boolean)
Finds the field with the name specified.
Top
See Also