Click or drag to resize

DBDriverBase Methods

The DBDriverBase type exposes the following members.

Methods
  NameDescription
Public methodCheckIfFkConstraintCanBeCreated
Checks if an fk constraint can be created between the fk side and the pk side specified.
Public methodConstructConnectionString
Constructs a valid connection string from the ConnectionElements specified in this driver instance.
Public methodConstructConnectionString(DictionaryConnectionElement, String)
Constructs a valid connection string from the ConnectionElements specified.
Public methodConvertDBTypeToDBNETProviderType
Converts the passed in db type to the name of the type in the .NET provider specific enum.
Public methodConvertDBTypeToNETType
Converts the passed in db type to its .NET type
Public methodConvertDBTypeToString
Converts the db type to a string value
Public methodConvertStringToDBType
Converts the name specified to a DBType value.
Public methodCreateCatalogRetriever
Produces the DBCatalogRetriever instance to use for retrieving meta-data of a catalog.
Public methodCreateCommand(String)
Creates a new command with the query set as command text and a new connection object set as its connection. It sets the command timeout to the static command time set in the DDDriverbase class
Public methodCreateCommand(DbConnection, String)
Creates a new command with the query set as command text and the connection passed in set as its connection. It sets the command timeout to the static command time set in the DDDriverbase class
Public methodCreateConnection
Creates a connection object using the factory and sets the connection string
Public methodCreateConnectionDataCollector
Creates the connectiondata object to be used to obtain the required information for connecting to the database.
Public methodCreateDataAdapter(DbCommand)
Creates a new data adapter with the connection specified and the query specified as the select query for the select command
Public methodCreateDataAdapter(String)
Creates a new data adapter with the connection specified and the query specified as the select query for the select command
Public methodCreateDataAdapter(DbConnection, String)
Creates a new data adapter with the connection specified and the query specified as the select query for the select command
Public methodStatic memberCreateDBDriverInstance
Creates an instance of the given class in the given namespace, loaded from the given assembly. Bubbles all exceptions up.
Public methodCreateParameter(DbCommand, DBStoredProcedureParameter)
Creates a new db parameter based on the passed in DBStoredProcedureParameter
Public methodCreateParameter(DbCommand, String, Object)
Creates a new parameter with the value specified. It's a different implementation as the other overloads: this overload doesn't set the DbType nor the size explicitly. Some providers need that like Sybase.
Public methodCreateParameter(DbCommand, String, DbType, Int32)
Creates a new parameter with the values specified and adds it to the parameter collection of the command specified
Public methodCreateParameter(DbCommand, String, DbType, Int32, Object)
Creates a new parameter with the values specified and adds it to the parameter collection of the command specified
Public methodCreateStoredProcCallCommand(String)
Creates a new command with the stored procedure call as the command text and a new connection object set as its connection. It sets the command timeout to the static command time set in the DDDriverbase class.
Public methodCreateStoredProcCallCommand(DbConnection, String)
Creates a new command with the stored procedure call as the command text and the connection object passed in as its connection. It sets the command timeout to the static command time set in the DDDriverbase class.
Public methodDBTypeIsNumeric
Returns true if the passed in type is a numeric type.
Public methodDBTypeRequiresInsertValue
Returns true if the specified type requires a value specified in Insert queries. Not all RDBMS's require for each type a value. F.e. SqlServer doesn't require a value for Timestamp types, SqlServer will insert a value automatically.
Public methodDBTypeSupportsPrecision
Returns whether the specified dbtype supports a precision. By default false is returned.
Public methodDBTypeSupportsScale
Returns whether the specified dbtype supports a scale. By default false is returned.
Protected methodDeserializeAdditionalAttributes
Deserializes attributes of this element's base class from the reader.
(Inherited from DBElementBase.)
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 methodExecuteWithActiveRecoveryStrategy(Action)
Executes the specified action with the active recovery strategy on this driver. If no recovery strategy is specified it will execute the action directly
Public methodExecuteWithActiveRecoveryStrategyT(FuncT)
Executes the specified func with the active recovery strategy on this driver. If no recovery strategy is specified it will execute the func directly
Protected methodFillDbTypeConvertArrays
Fills the db type arrays for various conversions
Protected methodFillDBTypeSortOrderList
Fills the DB type sort order list.
Protected methodFillNETToDBTypeConversionsList
Fills the NET to DB type conversions list.
Protected methodFillRdbmsFunctionalityAspects
Fills the RDBMS functionality aspects list.
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 methodGetAllCatalogNames
Gets all catalog names from the database system connected through the specified connection elements set.
Public methodGetAllSchemaNames
Gets all schema names from the catalog with the name specified in the database system connected through the specified connection elements set.
Public methodGetAllStoredProcedureNames
Gets all stored procedure names in the schema in the catalog specified in the database system connected through the specified connection elements set.
Public methodGetAllSynonymNames
Gets all synonym names (with the target type, if applicable) in the schema in the catalog specified in the database system connected through the specified connection elements set.
Public methodGetAllSystemSequences
Gets all system sequence instances for the database targeted. System sequences are sequences which are system wide, like @@IDENTITY.
Public methodGetAllTableNames
Gets all table names in the schema in the catalog specified in the database system connected through the specified connection elements set.
Public methodGetAllTableValuedFunctionNames
Gets all table valued function names in the schema in the catalog specified in the database system connected through the specified connection elements set.
Public methodGetAllViewNames
Gets all view names in the schema in the catalog specified in the database system connected through the specified connection elements set.
Public methodGetCompatibleDBTypeDefinitionsForNetType(Type, Int32, Int32, Int32)
Gets a List of all DBTypeDefinition instances which are compatible with the type specific information passed in. The first DBTypeSpecification is the default type specification to user.
Public methodGetCompatibleDBTypeDefinitionsForNetType(Type, Int32, Int32, Int32, String)
Gets a List of all DBTypeDefinition instances which are compatible with the type specific information passed in. The first DBTypeSpecification is the default type specification to user.
Public methodGetConnectionStringToUse
Gets the connection string to use.
Protected methodGetCurrencyTypes
Gets the currency types for this driver. Used for optimizing the SortOrder per db type.
Public methodGetDbProviderFactory
Gets the db provider factory to use
Protected methodGetDbProviderFactoryInvariantNames
Gets the DbProviderFactory invariant names to use for the factory. The first one which is found is used.
Public methodGetDbTypeAsEnumStringValue
Gets the string value of the db type passed in, from the Enum specification used in this driver for type specification
Protected methodGetDecimalTypes
Gets the decimal types for this driver. Used for optimizing the SortOrder per db type.
Public methodGetDefaultCatalogName
Gets the default name to use for catalogs
Public methodGetDefaultEmptyCatalog
Gets a default empty catalog, for meta-data stores which are populated through the designer, if the database of this driver supports no catalogs
Public methodGetDefaultEmptySchema
Gets a default empty schema, for meta-data stores which are populated through the designer, if the database of this driver supports no multiple schemas
Public methodGetDefaultSchemaName
Gets the default name to use for schemas.
Protected methodGetFixedLengthTypes
Gets the fixed length types (with multiple bytes, like char, binary), not b/clobs, for this driver. Used for optimizing the SortOrder per db type.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTargetDescription
Gets the target description of the target the driver is connected to, for display in a UI
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodGetVariableLengthTypes
Gets the variable length types (with multiple bytes, like varchar, varbinary), not b/clobs, for this driver. Used for optimizing the SortOrder per db type.
Protected methodHandleContainedListChangedTChangeType
Handles the contained list changed.
(Inherited from DBElementBase.)
Protected methodInitDataStructures
Inits the data structures of this driver. Call before anything starts.
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 methodObtainDbProviderFactoryInstance
Retrieves the DbProviderFactory instance to use. By default it uses the DbProviderFactories.GetFactory() method using the names provided by the method GetDbProviderFactoryInvariantNames
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 methodOnPopulatingCatalog
Called when the catalog with the name specified is about to be populated by this driver.
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.)
Protected methodPerformPostSetConnectionElementsWork
Performs the post set connection elements work. By default that's nothing. Use this method to process settings set in the connection dialog.
Public methodPopulateCatalogs
Populates the catalog(s) with the elements specified in the selectedElements datastructure. This routine uses the callbacks specified in callbacks to visualize the progress.
Public methodPreProcessCustomPropertyValue
Pre-processes the passed in string to make it a valid custom property value. By default, strings are capped on 256 characters and CRLF's are removed.
Protected methodProduceFullNameForCommandExecution
Produces the full name for command execution. The name returned is immediately usable as a name to target the element, e.g. a stored procedure.
Protected methodProduceMajorAndMinorServerVersionNumber
Produces the major and minor server version number from the ServerVersion string
Public methodReset
Resets this instance.
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.)
Protected methodSetCatalogNameAsDefault
Sets the catalog name passed in as the default catalog.
Public methodSetConnectionElements
Sets the connection elements to the contents of the passed in dictionary by copying them over into the ConnectionElements dictionary. The current values in ConnectionElements are removed first.
Protected methodSetTransientErrorRecoveryStrategy
Sets the transient error recovery strategy to the one specified.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateSortOrderPerDBType
Resets the SortOrderPerDBType data-structure and updates the order with the setting values specified.
Top
See Also