GenericDatabase Members
Include Protected Members
Include Inherited Members
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The GenericDatabase type exposes the following members.
Constructors
Name | Description | |
---|---|---|
GenericDatabase |
Initializes a new instance of the GenericDatabase class with a connection string and a provider factory.
|
Methods
Name | Description | |
---|---|---|
AddInParameter | Overloaded. | |
AddOutParameter |
Adds a new Out DbParameter object to the given command.
(Inherited from Database.) |
|
AddParameter | Overloaded. | |
BuildParameterName |
Builds a value parameter name for the current database.
(Inherited from Database.) |
|
ConfigureParameter |
Configures a given DbParameter.
(Inherited from Database.) |
|
CreateConnection | Creates a connection for this database. |
|
CreateParameter | Overloaded. | |
DeriveParameters |
This operation is not supported in this class.
(Overrides Database.DeriveParameters(DbCommand).) |
|
DiscoverParameters |
Discovers the parameters for a DbCommand.
(Inherited from Database.) |
|
DoExecuteNonQuery |
Executes the query for command.
(Inherited from Database.) |
|
Equals | (Inherited from Object.) | |
ExecuteDataSet | Overloaded. | |
ExecuteNonQuery | Overloaded. | |
ExecuteReader | Overloaded. | |
ExecuteScalar | Overloaded. | |
Finalize | (Inherited from Object.) | |
GetDataAdapter | Overloaded. | |
GetHashCode | (Inherited from Object.) | |
GetInstrumentationEventProvider |
Returns the object to which the instrumentation events have been delegated.
(Inherited from Database.) |
|
GetOpenConnection | Overloaded. | |
GetParameterValue |
Gets a parameter value.
(Inherited from Database.) |
|
GetSqlStringCommand | Creates a DbCommand for a SQL query. |
|
GetStoredProcCommand | Overloaded. | |
GetStoredProcCommandWithSourceColumns |
Wraps around a derived class's implementation of the GetStoredProcCommandWrapper method and adds functionality for using this method with UpdateDataSet. The GetStoredProcCommandWrapper method (above) that takes a params array expects the array to be filled with VALUES for the parameters. This method differs from the GetStoredProcCommandWrapper method in that it allows a user to pass in a string array. It will also dynamically discover the parameters for the stored procedure and set the parameter's SourceColumns to the strings that are passed in. It does this by mapping the parameters to the strings IN ORDER. Thus, order is very important.
(Inherited from Database.) |
|
GetType | (Inherited from Object.) | |
LoadDataSet | Overloaded. | |
MemberwiseClone | (Inherited from Object.) | |
OpenConnection | Obsolete.
Opens a connection. |
|
SameNumberOfParametersAndValues |
Determines if the number of parameters in the command matches the array of parameter values.
(Inherited from Database.) |
|
SetParameterValue |
Sets a parameter value.
(Inherited from Database.) |
|
SetUpRowUpdatedEvent |
Sets the RowUpdated event for the data adapter.
(Inherited from Database.) |
|
ToString | (Inherited from Object.) | |
UpdateDataSet | Overloaded. | |
UserParametersStartIndex |
Returns the starting index for parameters in a command.
(Inherited from Database.) |
Fields
Name | Description | |
---|---|---|
instrumentationProvider |
The DataInstrumentationProvider instance that defines the logical events used to instrument this Database instance.
(Inherited from Database.) |
Properties
Name | Description | |
---|---|---|
ConnectionString | Gets the string used to open a database. |
|
ConnectionStringNoCredentials | Gets the connection string without the username and password. |
|
ConnectionStringWithoutCredentials |
Gets the connection string without credentials.
(Inherited from Database.) |
|
DbProviderFactory | Gets the DbProviderFactory used by the database instance. |
See Also
Microsoft.Practices.EnterpriseLibrary.Data Namespace
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |