Back to Devexpress

ConnectionProviderSql Members

corelibraries-devexpress-dot-xpo-dot-db-dot-connectionprovidersql-dot-underscore-members.md

latest23.9 KB
Original Source

ConnectionProviderSql Members

Implements the base functionality for SQL-based data store adapters, including the MSSqlConnectionProvider and other adapters listed in the Database Systems Supported by XPO topic.

Fields

NameDescription
DefaultCommandTimeoutSpecifies the timeout value passed to the IDbCommand.CommandTimeout property of each created command, in seconds.
EnableConnectionStringArgumentEscaping static
GlobalDefaultCommandTimeout staticSpecifies the timeout value passed to the IDbCommand.CommandTimeout property, in seconds. Can be overridden by the ConnectionProviderSql.DefaultCommandTimeout field. The default is 300.
GlobalQueryParameterMode staticSpecifies how connection providers initialize command parameters. Use the QueryParameterMode property to change this setting for a specific connection provider.
GlobalUseLegacyDateOnlyAndTimeOnlySupport static
GlobalUseLegacyUntypedParameters staticThis property is now obsolete. Use GlobalQueryParameterMode instead.
IdentityColumnMagicName
MaxDeadLockRetryDelayMilliseconds static
MaxDeadLockTryCount static
QueryParameterModeSpecifies how a connection provider initializes command parameters.
UseLegacyTimeSpanSupport static
UseLegacyUntypedParametersThis property is now obsolete. Use QueryParameterMode instead.
XpoProviderTypeParameterName staticReturns a parameter name used to denote a provider type in a connection string. The default value is “XpoProvider”. Inherited from DataStoreBase.

Properties

NameDescription
AutoCreateOptionReturns which operations are performed when a data store is accessed for the first time. Inherited from DataStoreBase.
BraceJoin
CanCreateDatabase
CanCreateSchema
Connection
ConnectionString
CustomAggregatesGets a collection of custom aggregate functions supplied by the current metadata provider.
CustomFunctionOperators
Factories staticReturns registered provider factories. Inherited from DataStoreBase.
NativeOuterApplySupported
NativeSkipTakeSupported
SupportNamedParameters
SyncRootObsolete. This API is obsolete now.
Transaction

Methods

NameDescription
CollectTablesToCreate(ICollection)
CompareSchema(IEnumerable<DBTable>, SchemaMigrationOptions)
ComposeSafeColumnName(String)
ComposeSafeConstraintName(String)
ComposeSafeSchemaName(String)
ComposeSafeTableName(String)
CreateColumn(DBTable, DBColumn)
CreateCommand()
CreateForeignKey(DBTable, DBForeignKey)
CreateIndex(DBTable, DBIndex)
CreateObjRef(Type)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Inherited from MarshalByRefObject.
CreatePrimaryKey(DBTable)
CreateTable(DBTable)
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
EscapeConnectionStringArgument(String) static
ExecSql(Query)
ExecSqlAsync(Query, AsyncOperationIdentifier, CancellationToken)
ExecuteUpdateSchemaStatements(IEnumerable<UpdateSchemaStatement>)
ExplicitBeginTransaction()
ExplicitBeginTransaction(IsolationLevel)
ExplicitCommitTransaction()
ExplicitRollbackTransaction()
FormatBinary(BinaryOperatorType, String, String)
FormatColumn(String, String)
FormatColumn(String)
FormatColumnSafe(String)
FormatConstraint(String)
FormatConstraintSafe(String)
FormatDelete(String, String)
FormatFunction(FunctionOperatorType, String[])
FormatFunction(ProcessParameter, FunctionOperatorType, Object[])
FormatInsert(String, String, String)
FormatInsertDefaultValues(String)
FormatOrder(String, SortingDirection)
FormatOuterApply(String, String)
FormatSelect(String, String, String, String, String, String, Int32, Int32)
FormatSelect(String, String, String, String, String, String, Int32)
FormatTable(String, String, String)
FormatTable(String, String)
FormatTableSafe(DBTable)
FormatUnary(UnaryOperatorType, String)
FormatUpdate(String, String, String)
FormatUpdateSchemaScript(IEnumerable<UpdateSchemaStatement>)
FormatUpdateSchemaStatements(IEnumerable<UpdateSchemaStatement>)
GenerateStoredProcedures(DBTable, out String)
GenerateStoredProceduresInfoOnce()
GetColumnType(DbType, Boolean) static
GetCustomAggregate(String)Searches custom aggregate functions registered in an application via the RegisterCustomAggregate(ICustomAggregateFormattable) and RegisterCustomAggregates(ICollection<ICustomAggregateFormattable>) method calls for a function with the specified name.
GetCustomFunctionOperator(String)
GetDbType(DBColumnType) static
GetHashCode()Serves as the default hash function. Inherited from Object.
GetLifetimeService()Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetParameterName(OperandValue, Int32, ref Boolean)
GetSqlCreateColumnFullAttributes(DBTable, DBColumn, Boolean)
GetSqlCreateColumnFullAttributes(DBTable, DBColumn)
GetStorageTables(String[])
GetStorageTablesList(Boolean)
GetStoredProcedures()
GetTableSchema(DBTable, Boolean, Boolean)
GetType()Gets the Type of the current instance. Inherited from Object.
InitializeLifetimeService()Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protectedCreates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
ModifyData(ModificationStatement[])
ModifyDataAsync(CancellationToken, ModificationStatement[])
QueryDataStore(IDbConnection, AutoCreateOption) staticCreates a data store based on specified settings. Inherited from DataStoreBase.
QueryDataStore(String, String, AutoCreateOption, out IDisposable[]) staticCreates a data store based on specified settings. Inherited from DataStoreBase.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
RegisterCustomAggregate(ICustomAggregateFormattable)Registers a custom aggregate function to use in any CriteriaOperator-based criteria in your application.
RegisterCustomAggregates(ICollection<ICustomAggregateFormattable>)Registers custom aggregate functions to use in any CriteriaOperator-based criteria in your application.
RegisterCustomFunctionOperator(ICustomFunctionOperatorFormattable)
RegisterCustomFunctionOperators(ICollection<ICustomFunctionOperatorFormattable>)
RegisterDataStoreProvider(String, DataStoreCreationFromConnectionDelegate) staticRegisters a data store provider using a specified connection type name and a procedure that establishes a connection for the provider. Inherited from DataStoreBase.
RegisterDataStoreProvider(String, DataStoreCreationFromStringDelegate) staticRegisters a data store provider using a specified name and a procedure that establishes a connection for the provider. Inherited from DataStoreBase.
RegisterFactory(ProviderFactory) staticRegisters a specified data store provider factory. Inherited from DataStoreBase.
SelectData(SelectStatement[])
SelectDataAsync(CancellationToken, SelectStatement[])
ToString()Returns a string that represents the current object. Inherited from Object.
UnregisterCustomAggregate(ICustomAggregateFormattable)Unregisters a specified custom aggregate function from use in any ConnectionProviderSql-based connection provider in your application.
UnregisterCustomAggregate(String)Unregisters a custom aggregate function with the specified name from use in any ConnectionProviderSql-based connection provider in your application.
UnregisterCustomFunctionOperator(ICustomFunctionOperatorFormattable)
UnregisterCustomFunctionOperator(String)
UpdateSchema(DBTable[])Updates a data store’s schema according to specified settings. Inherited from DataStoreBase.
UpdateSchema(Boolean, DBTable[])
UpdateSchemaAsync(CancellationToken, Boolean, DBTable[])

Events

Name
Reconnected

See Also

ConnectionProviderSql Class

DevExpress.Xpo.DB Namespace