Click or drag to resize

DBTypeDefinition Class

Class which represents a type definition for an element, like a field.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.DBDriverCoreDBTypeDefinition

Namespace:  SD.LLBLGen.Pro.DBDriverCore
Assembly:  SD.LLBLGen.Pro.DBDriverCore (in SD.LLBLGen.Pro.DBDriverCore.dll) Version: 5.8.0.0 (5.8.21.0208)
Syntax
public class DBTypeDefinition : ISerializableToXml

The DBTypeDefinition type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyDBType
The numeric representation of the datatype.
Public propertyDBTypeAsNETType
The .NET type representation of the DBType.
Public propertyDBTypeAsString
String representation of the numeric value of DBType. The string representation is the native RDBMS name for the type represented by DBType
Public propertyIsOfUserDefinedType
Flag to signal if this datatype is of a user-defined type.
Public propertyLength
Length of the datatype in positions/bytes/elements. For unicoded fields/parameters, this length is the length in unicoded elements, not the total length in bytes.
Public propertyNetTypeSetByUserDefinedType
Gets a value indicating whether the DbTypeAsNETType is set by an UDT (which is a CLR type). Necessary for saving/loading this type to/from a file.
Public propertyPrecision
The precision of the datatype. Only used by some numeric datatypes.
Public propertyRequiresInsertValue
Flag to signal if this datatype requires a value specified in Insert queries. Not all RDBMS's require for each type a value, e.g. SqlServer doesn't require a value for Timestamp types, SqlServer will insert a value automatically.
Public propertyScale
The scale of the datatype. Only used by some numeric datatypes.
Public propertyUDTName
Gets the name of the UDT the db type is based on. If not applicable, an empty string is returned.
Public propertyUserDefinedTypeCatalog
Defines the name of the catalog the User Defined Type is stored in if this datatype is a user-defined type. Only valid if IsOfUserDefinedType is true.
Public propertyUserDefinedTypeName
Defines the name of the User Defined Type if this datatype is a user-defined type. Only valid if IsOfUserDefinedType is true.
Public propertyUserDefinedTypeOwner
Defines the name of the owner of the User Defined Type if this datatype is a user-defined type. Only valid if IsOfUserDefinedType is true.
Top
Methods
  NameDescription
Public methodStatic memberCreate
Creates a new DBTypeDefinition instance with the specific data specified.
Public methodDeserializeFromReader
Deserializes from reader. Reader is positioned at the element which contains the attributes to read. Reader won't be positioned on another element, all data to read is in the current element
Public methodEquals
Determines if the passed in object is equal to this object, using a compare of DbType, Length, Precision and scale.
(Overrides ObjectEquals(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 methodGetHashCode
Returns the hashcode for this object.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSerializeToWriter
Serializes the data in this class to the serializer passed in
Public methodSetDBType(Int32, DBDriverBase, Int32, Int32, Int32)
Sets various type information for this typedefinition and all values related to it which are retrievable from the driver specified.
Public methodSetDBType(Int32, DBDriverBase, String, String, String, Type, Int32, Int32, Int32)
Sets the DBtype of this typedefinition and all values related to it which are retrievable from the driver specified.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventTypeDefinitionChanged
Raised when this type definition's important elements have changed
Top
See Also