Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MultiDelegatingDbProvider Members

MultiDelegatingDbProvider overview

Public Static (Shared) Properties

CurrentDbProviderName Convenience method to sets the name of the DbProvider that will be used for the the current thread's procesing.

Public Instance Constructors

MultiDelegatingDbProvider Overloaded. Initializes a new instance of the MultiDelegatingDbProvider class.

Public Instance Properties

ConnectionString Connection string used to create connections.
DbMetadata Return metadata information about the database provider
DefaultDbProvider Sets the default IDbProvider. This will be returned if no DbProvider is found in thread local storage.
TargetDbProviders Sets the target db providers.

Public Instance Methods

AfterPropertiesSet Ensures that the there are values in the TargetDbProviders dictionary and that the key is of the type string and value is of the type IDbProvider.
CreateCommand Returns a new command object for executing SQL statments/Stored Procedures against the database.
CreateCommandBuilder Returns a new instance of the providers CommandBuilder class.
CreateConnection Returns a new connection object to communicate with the database.
CreateDataAdapter Returns a new adapter objects for use with offline DataSets.
CreateParameter Returns a new parameter object for binding values to parameter placeholders in SQL statements or Stored Procedure variables.
CreateParameterName Creates the name of the parameter in the format appropriate to use inside IDbCommand.CommandText.
CreateParameterNameForCollection Creates the name ofthe parameter in the format appropriate for an IDataParameter, i.e. to be part of a IDataParameterCollection.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
ExtractError Extracts the provider specific error code as a string.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
IsDataAccessException Determines whether the provided exception is in fact related to database access. This can be provider dependent in .NET 1.1 since there isn't a common base class for ADO.NET exceptions.
IsDataAccessExceptionBCL11 Determines whether is data access exception in .NET 1.1 for the specified exception.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetTargetProvider Gets the target provider based on the thread local name "dbProviderName"
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

MultiDelegatingDbProvider Class | Spring.Data Namespace