Click or drag to resize

AbstractSqlFactory Class

X#
This is the base class for most ISqlFactory implementations.
Inheritance Hierarchy
Object
  AbstractSqlFactory
    OdbcFactory
    OleDbFactory
    SqlServerFactory

Namespace:  XSharp.Data
Assembly:  XSharp.Data (in XSharp.Data.dll) Version: 2.19
Syntax
 ABSTRACT CLASS AbstractSqlFactory IMPLEMENTS ISqlFactory
Request Example View Source

The AbstractSqlFactory type exposes the following members.

Constructors
  NameDescription
Public methodAbstractSqlFactory
Initializes a new instance of the AbstractSqlFactory class
Top
Properties
  NameDescription
Public propertyCanCreateDataSourceEnumerator
Does the factory support datasource enumeration.
Public propertyStatic memberDefaultFactory
Public propertyName
Return the name of the factory.
Public propertyParameterNameInQuery
Should the parameter name be included in the query. Defaults to FALSE for ODBC and OLEDB and TRUE for SQLServer
Public propertyParameterPrefix
Define the character with which parameters are prefixed in queries. For example '?' (ODBC, OLEDB) or '@' (SQLServer)
Public propertyQuoteChar
Return the quote character for table and column names.
Top
Methods
  NameDescription
Public methodAfterCommit
This method is called after a transaction was committed.
Public methodAfterConnect
This method is called after a connection was opened.
Public methodAfterDisConnect
This method is called after a connection was disconnected.
Public methodAfterOpen
This method is called after a datareader was opened.
Public methodAfterRollBack
This method is called after a transaction was rolled back.
Public methodBeforeCommit
This method is called before a transaction is committed.
Public methodBeforeConnect
This method gets called before connecting. This allows to adjust the connection string.
Public methodBeforeDisConnect
This method is called before a connection is disconnected.
Public methodBeforeRollBack
This method is called before a transaction is rolled back.
Public methodCreateCommand
Returns a new instance of the provider's class that implements the DbCommand class.
Public methodCreateCommandBuilder
Returns a new instance of the provider's class that implements the DbCommandBuilder class.
Public methodCreateConnection
Returns a new instance of the provider's class that implements the DbConnection class.
Public methodCreateConnectionStringBuilder
Returns a new instance of the provider's class that implements the DbConnectionStringBuilder class.
Public methodCreateDataAdapter
Returns a new instance of the provider's class that implements the DbDataAdapter class.
Public methodCreateDataSourceEnumerator
Returns a new instance of the provider's class that implements the DbDataSourceEnumerator class.
Public methodCreateParameter
Returns a new instance of the provider's class that implements the DbParameter class.
Public methodDriverConnect
This method is called to show an interactive dialog to select a connection.
Public methodEnhanceException
This method is called after a transaction was committed.
Public methodGetMetaDataColumnValues
Create an object array of column properties from the current datarow in the schema rowset
Public methodGetMetaDataTableValues
Create an object array of table properties from the current datarow in the schema rowset
Public methodGetName
Return the name of the factory.
Public methodHandleSpecialValue
This method is called to translate result values for a column.
Public methodTranslateStatement
This method is called before a statement is sent to the server.
Top
Remarks
This class creates connections, commands etc by calling the appropriate methods on a protected DbProvider instance.
See Also