UserCredentialsDbProvider Members
Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

UserCredentialsDbProvider Members

UserCredentialsDbProvider overview

Public Instance Constructors

UserCredentialsDbProvider Constructor Initializes a new instance of the UserCredentialsDbProvider class.

Public Instance Properties

ConnectionString (inherited from DelegatingDbProvider) Connection string used to create connections.
DbMetadata (inherited from DelegatingDbProvider) Return metadata information about the database provider
Password Sets the password string that will be appended to the connection string.
Separator Sets the separator used to separate elements of the connection string. Default is ';'.
TargetDbProvider (inherited from DelegatingDbProvider) Gets or sets the target IDbProvider that this IDbProvider should delegate to
Username Sets the username string that will be appended to the connection string.

Public Instance Methods

AfterPropertiesSet (inherited from DelegatingDbProvider) Invoked by an IObjectFactory after it has injected all of an object's dependencies.
CreateCommand (inherited from DelegatingDbProvider) Returns a new command object for executing SQL statments/Stored Procedures against the database.
CreateCommandBuilder (inherited from DelegatingDbProvider) Returns a new instance of the providers CommandBuilder class.
CreateConnection Returns a new connection object to communicate with the database. Determine if there are currently thread-bound credentials, using them if available, falling back to the statically specified username and password (i.e. values of the properties 'Username' and 'Password') otherwise. The username and password will be concatenated on the connection string using string in the Separator property
CreateDataAdapter (inherited from DelegatingDbProvider) Returns a new adapter objects for use with offline DataSets.
CreateParameter (inherited from DelegatingDbProvider) Returns a new parameter object for binding values to parameter placeholders in SQL statements or Stored Procedure variables.
CreateParameterName (inherited from DelegatingDbProvider) Creates the name of the parameter in the format appropriate to use inside IDbCommand.CommandText.
CreateParameterNameForCollection (inherited from DelegatingDbProvider) 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 (inherited from DelegatingDbProvider) 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 (inherited from DelegatingDbProvider) 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.
RemoveCredentialsFromCurrentThread Removes the user credentials from current thread. Use statically specified credentials afterwards.
SetCredentialsForCurrentThread Sets the user credentials for current thread. The given username and password strings will be added to the connection string for all subsequent GetConnection requests. This will override any statically specified user credentials, that is, set by the properties Username nad Password.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

DoCreateConnectionMissing <summary> documentation for M:Spring.Data.Common.UserCredentialsDbProvider.DoCreateConnection(System.String,System.String)
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.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

UserCredentialsDbProvider Class | Spring.Data.Common Namespace