点击或拖拽改变大小

AbstractSqlFactory 类

X#
This is the base class for most ISqlFactory implementations.
继承层次
Object
  AbstractSqlFactory
    OdbcFactory
    OleDbFactory
    SqlServerFactory

命名空间:  XSharp.Data
程序集:  XSharp.Data (在 XSharp.Data.dll 中) 版本:2.22 GA
语法
 ABSTRACT CLASS AbstractSqlFactory IMPLEMENTS ISqlFactory
查看代码

AbstractSqlFactory 类型公开以下成员。

构造函数
  名称说明
公共方法AbstractSqlFactory
初始化 AbstractSqlFactory 类的一个新实例
Top
属性
  名称说明
公共属性CanCreateDataSourceEnumerator
Does the factory support datasource enumeration.
公共属性静态成员DefaultFactory
公共属性Name
Return the name of the factory.
公共属性ParameterNameInQuery
Should the parameter name be included in the query. Defaults to FALSE for ODBC and OLEDB and TRUE for SQLServer
公共属性ParameterPrefix
Define the character with which parameters are prefixed in queries. For example '?' (ODBC, OLEDB) or '@' (SQLServer)
公共属性QuoteChar
Return the quote character for table and column names.
Top
方法
  名称说明
公共方法AfterCommit
This method is called after a transaction was committed.
公共方法AfterConnect
This method is called after a connection was opened.
公共方法AfterDisConnect
This method is called after a connection was disconnected.
公共方法AfterOpen
This method is called after a datareader was opened.
公共方法AfterRollBack
This method is called after a transaction was rolled back.
公共方法BeforeCommit
This method is called before a transaction is committed.
公共方法BeforeConnect
This method gets called before connecting. This allows to adjust the connection string.
公共方法BeforeDisConnect
This method is called before a connection is disconnected.
公共方法BeforeRollBack
This method is called before a transaction is rolled back.
公共方法CreateCommand
Returns a new instance of the provider's class that implements the DbCommand class.
公共方法CreateCommandBuilder
Returns a new instance of the provider's class that implements the DbCommandBuilder class.
公共方法CreateConnection
Returns a new instance of the provider's class that implements the DbConnection class.
公共方法CreateConnectionStringBuilder
Returns a new instance of the provider's class that implements the DbConnectionStringBuilder class.
公共方法CreateDataAdapter
Returns a new instance of the provider's class that implements the DbDataAdapter class.
公共方法CreateDataSourceEnumerator
Returns a new instance of the provider's class that implements the DbDataSourceEnumerator class.
公共方法CreateParameter
Returns a new instance of the provider's class that implements the DbParameter class.
公共方法DriverConnect
This method is called to show an interactive dialog to select a connection.
公共方法EnhanceException
This method is called after a transaction was committed.
公共方法GetMetaDataColumnValues
Create an object array of column properties from the current datarow in the schema rowset
公共方法GetMetaDataTableValues
Create an object array of table properties from the current datarow in the schema rowset
公共方法GetName
Return the name of the factory.
公共方法HandleSpecialValue
This method is called to translate result values for a column.
公共方法TranslateStatement
This method is called before a statement is sent to the server.
Top
备注
This class creates connections, commands etc by calling the appropriate methods on a protected DbProvider instance.
参见