FCFL.NET Common Library - API Reference
DbProvider Class Members
Properties  Methods 

The following tables list the members exposed by DbProvider.

Public Properties
 NameDescription
Public PropertyCanBatchQueriesSpecifies whether the underlying database type for this provider can support multiple SQL statements per database round-trip  
Public PropertyConnectionStringGets or sets the connection string this provider will use for database connections  
Public PropertyMaxInListItemsGets the maximum number of items the underlying database type supports in an IN() or NOT IN() SQL clause  
Public PropertyProviderNameA general provider type or key to classify this provider  
Public PropertyRequiresDbNameParameterGets whether or not this provider requires the "dbname" argument for the CreateConnectionString Method  
Public PropertyTypeMapperThis property is intended for future use and is not currently used.  
Top
Public Methods
 NameDescription
Public Methodstatic (Shared in Visual Basic)ConstructConnectionStringConstructs a valid ADO.NET-compliant connection string from the supplied key/value pairs.  
Public MethodCreateCommand  
Public MethodCreateConnectionStringCreates a basic connection string from the basic common required elements according the rules of the specific database type  
Public MethodCreateParameterCreates a new IDbDataParameter of the specific underlying type for this database provider type (i.e. SqlHelper for MSSQL, etc)  
Public MethodFormatDateLiteralConverts a DateTime value to a string according to the specific format of the underlying database type  
Public MethodGetAdapterOverloaded. Gets a database type-specific DbDataAdapter instance for this provider type (i.e. SqlDataAdapter for MSSQL) without any options set yet.  
Public MethodGetAsStatementQualifies a column or table alias according to this provider's database type's rules regarding use of the AS keyword  
Public MethodGetBitwiseAndStatementFormats a bitwise AND statement according to the language features of the underlying database type  
Public MethodGetConnectionOverloaded. Gets an IDbConnection object instance of the correct type for the underlying database (i.e. SqlConnection for MSSQL) that is prepared to connect to the specified database using the default connection string specified in the application configuration file.  
Public MethodGetDateStatementGets a SQL statement fragment for the database-specific syntax of retrieving the current date (i.e. SYSDATE on Oracle or GETDATE() on MSSQL).  
Public MethodGetDBDateExecutes a statement against the database to retrieve the current date/time on the database  
Public MethodGetDbVersionOverloaded. Executes a statement against the database to retrieve the database software's version number  
Public MethodGetParameterNamePrefixGets the prefix used by the underlying database type for parameters in a parameterized query  
Public Methodstatic (Shared in Visual Basic)ParseConnectionStringParses a connection string into name-value pairs  
Public MethodPrepareParameterPrepares a parameter for the specified type of query according to the rules of the underlying database type  
Public MethodPrepareSQLStatementPrepares and formats a SQL statement according to the rules of the underlying database type  
Public MethodRemoveParameterNamePrefixRemoves, if necessary, the parameter name prefix on a given parameter name  
Public MethodSetDatabaseParameterTypeForClobText  
Public MethodTestConnectionOverloaded. Executes a test to connect to the database using the default connection string  
Public MethodValidateConnectionParamsValidates the supplied connection parameters against the rules of the underlying provider  
Top
See Also

Reference

DbProvider Class
FChoice.Common.Data Namespace

 

 


© 2010 Dovetail Software, Inc. - All rights reserved.
- Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
- .NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.

Send comments on this topic.