Knight Data Access Layer
BaseDatabaseProvider Class Methods


KellermanSoftware.NetDataAccessLayer Namespace : BaseDatabaseProvider Class

For a list of all members of this type, see BaseDatabaseProvider members.

Public Methods
 NameDescription
Public Method Begin a new transaction  
Public Method Build a connection string based on the passed in database  
Public Method Change database.  
Public MethodOverloaded.  Clear the file log  
Public Method Close the database connection  
Public Method Commit the current transaction  
Public Method Opens and closes the connection to ensure it is valid.  
Public Method Get the number of records in a table  
Public Method Create new database  
Public Method Check database existance  
Public Method Disable all logging  
Public Method Close the connection on Dispose  
Public Method Drop (remove) a table from the database  
Public MethodOverloaded.  Log to the console  
Public MethodOverloaded.  Execute the passed query and return the number of affected records  
Public MethodOverloaded.  Execute the passed query and return the first column of the first row  
Public MethodOverloaded.  Fill a data table with the passed sql and parameters  
Public Method Returns true if the Foreign Key Exists  
Public Method Get the SQL for adding a column to an existing table  
Public Method Get all constraints for the current database  
Public Method Get portion of SQL used for the column definition for add column and create table sql  
Public Method Get sql comment using the given comment text  
Public Method Get comment separator line  
Public Method Get the sql to create sequence  
Public Method Get the SQL for creating a table with the primary key  
Public Method Get the SQL for creating a table with composite keys  
Public Method Get the SQL for creating a table with a primary key  
Public Method Get the SQL to create the tables  
Public Method Get the sql to create trigger  
Public Method Get database name from the connection string.  
Public Method Get a list of databases for the current database server  
Public Method Get the date of the database server  
Public Method Get a list of tables in the current database  
Public Method Get the database field type for the passed standard DbType  
Public MethodOverloaded.  Get a datatable from the passed sql  
Public Method Get a DbType associated with a string from a database  
Public Method Get the DbType for provided ClrType  
Public Method Get the sql to drop a sequence  
Public Method Get the sql to drop a table  
Public Method Get the sql to drop a trigger  
Public Method Get a .NET type associated with a string from a database  
Public Method Get the maximum value for the primary key  
Public Method Get the SQL required to get the maximum value of the primary key  
Public Method Get the server name from the connection string  
Public Method Get the sql to truncate a table.  
Public Method Get the SQL to update the tables  
Public MethodOverloaded.  Get a list of records using the passed SQL  
Public MethodOverloaded.  Get a single record from a table with a parameterized where clause  
Public Method Get a page of records for a table  
Public MethodOverloaded.  Get a limited number of records for a table  
Public Method Mark foreign key columns by convention  
Public Method Mark Primary Key in a table  
Public Method Mark primary key columns by convention  
Public Method Open the database connection  
Public MethodOverloaded.  Returns true if the record exists  
Public Method Perform a rollback of the current transaction  
Public Method Returns true if the passed table exists in the database  
Public Method Delete all the records from a table  
Public Method Wrap a table name or field name in square brackets  
Top
Protected Methods
 NameDescription
Protected Method Add constraints.  
Protected Method Adds the foreign key constraints.  
Protected Method Build the sql for fields other than the primary key  
Protected Method Adds parameters to the given command  
Protected Method Builds the top records SQL.  
Protected Method Creates new command with the given command text  
Protected Method Creates new connection  
Protected Method Creates data adapter using the given select command  
Protected Method Get SQL for batch end  
Protected Method Get the primary key columns for a table from the schema  
Protected Method Gets records using the given command  
Protected Method Get SQL for batch start  
Protected Method Intercept the SQL and change it with the passed parameters  
Protected Method Sets parameter using the given parameter value  
Top
See Also

Reference

BaseDatabaseProvider Class
KellermanSoftware.NetDataAccessLayer Namespace