프로퍼티 | 타입 | 설명 | |
---|---|---|---|
BuildConnectionSettingsOverride | string | ||
CreateConnection | |||
CreateConnectionAsync | Task |
||
Execute | int? | ||
GetEffectiveSettings | |||
GetEffectiveSettingsAsync | Task |
||
IRootDataSource | |||
IRootDataSource | IOpenDataSource | ||
IRootDataSource | ITransactionalDataSource | ||
IRootDataSource | Task |
||
IRootDataSource | Task |
||
SqlServerDataSource | System |
메소드 | 설명 | |
---|---|---|
BeginTransaction ( string transactionName = null, IsolationLevel isolationLevel = null, bool forwardEvents = true ) : SqlServerTransactionalDataSource |
Creates a new transaction the caller of this function is responsible for closing the transaction. |
|
BeginTransactionAsync ( string transactionName = null, IsolationLevel isolationLevel = null, bool forwardEvents = true ) : Task |
Creates a new transaction
|
|
CreateFromConfig ( string connectionName ) : |
Creates a new connection using the connection string settings in the app.config file.
|
|
SqlServerDataSource ( System.Data.SqlClient.SqlConnectionStringBuilder connectionStringBuilder, |
Initializes a new instance of the SqlServerDataSource class.
|
|
SqlServerDataSource ( string name, System.Data.SqlClient.SqlConnectionStringBuilder connectionStringBuilder, |
Initializes a new instance of the SqlServerDataSource class.
|
|
SqlServerDataSource ( string connectionString, |
Initializes a new instance of the SqlServerDataSource class.
|
|
SqlServerDataSource ( string name, string connectionString, |
Initializes a new instance of the SqlServerDataSource class.
|
|
StartSqlDependency ( ) : bool |
Starts SQL dependency. true if the listener initialized successfully; false if a compatible listener already exists. |
|
StopSqlDependency ( ) : bool |
Stops SQL dependency. true if the listener was completely stopped; false if the System.AppDomain was unbound from the listener, but there are is at least one other System.AppDomain using the same listener. |
|
TestConnection ( ) : void |
Tests the connection.
|
|
TestConnectionAsync ( ) : Task |
Tests the connection asynchronously.
|
|
WithCache ( ICacheAdapter cache ) : |
Craetes a new data source with the provided cache.
|
|
WithRules ( ) : |
Creates a new data source with additional audit rules.
|
|
WithRules ( IEnumerable |
Creates a new data source with additional audit rules.
|
|
WithSettings ( |
Creates a new data source with the indicated changes to the settings. The new data source will share the same database metadata cache. |
|
WithUser ( object userValue ) : |
Creates a new data source with the indicated user. This is used in conjunction with audit rules. |
메소드 | 설명 | |
---|---|---|
Execute ( SqlTransaction>.OperationExecutionToken |
Executes the specified operation.
|
|
ExecuteAsync ( SqlParameter>.CommandExecutionToken |
Execute the operation asynchronously.
|
|
ExecuteAsync ( SqlTransaction>.OperationExecutionToken |
Execute the operation asynchronously.
|
메소드 | 설명 | |
---|---|---|
BuildConnectionSettingsOverride ( ) : string | ||
CreateConnection ( ) : |
||
CreateConnectionAsync ( |
Creates and opens a SQL connection. The caller of this method is responsible for closing the connection. |
|
Execute ( SqlParameter>.CommandExecutionToken |
||
GetEffectiveSettings ( ) : |
||
GetEffectiveSettingsAsync ( ) : Task |
||
IRootDataSource ( ) : |
||
IRootDataSource ( |
||
IRootDataSource ( ) : ITransactionalDataSource | ||
IRootDataSource ( ) : Task |
||
IRootDataSource ( ) : Task |
||
SqlServerDataSource ( string name, System.Data.SqlClient.SqlConnectionStringBuilder connectionStringBuilder, |
public BeginTransaction ( string transactionName = null, IsolationLevel isolationLevel = null, bool forwardEvents = true ) : SqlServerTransactionalDataSource | ||
transactionName | string | optional name of the transaction. |
isolationLevel | IsolationLevel | the isolation level. if not supplied, will use the database default. |
forwardEvents | bool | if true, logging events are forwarded to the parent connection. |
리턴 | SqlServerTransactionalDataSource |
public BeginTransactionAsync ( string transactionName = null, IsolationLevel isolationLevel = null, bool forwardEvents = true ) : Task |
||
transactionName | string | Name of the transaction. |
isolationLevel | IsolationLevel | The isolation level. |
forwardEvents | bool | if set to |
리턴 | Task |
public static CreateFromConfig ( string connectionName ) : |
||
connectionName | string | |
리턴 |
protected Execute ( SqlTransaction>.OperationExecutionToken |
||
executionToken | SqlTransaction>.OperationExecutionToken | The execution token. |
implementation | SqlTransaction>.OperationImplementation | The implementation. |
state | object | The state. |
리턴 | int? |
protected ExecuteAsync ( SqlParameter>.CommandExecutionToken |
||
executionToken | SqlParameter>.CommandExecutionToken | The execution token. |
implementation | CommandImplementationAsync |
The implementation that handles processing the result of the command. |
cancellationToken | The cancellation token. | |
state | object | User supplied state. |
리턴 | Task |
protected ExecuteAsync ( SqlTransaction>.OperationExecutionToken |
||
executionToken | SqlTransaction>.OperationExecutionToken | The execution token. |
implementation | SqlTransaction>.OperationImplementationAsync | The implementation. |
cancellationToken | The cancellation token. | |
state | object | The state. |
리턴 | Task |
public SqlServerDataSource ( System.Data.SqlClient.SqlConnectionStringBuilder connectionStringBuilder, |
||
connectionStringBuilder | System.Data.SqlClient.SqlConnectionStringBuilder | The connection string builder. |
settings | Optional settings object. | |
리턴 | System |
public SqlServerDataSource ( string name, System.Data.SqlClient.SqlConnectionStringBuilder connectionStringBuilder, |
||
name | string | Optional name of the data source. |
connectionStringBuilder | System.Data.SqlClient.SqlConnectionStringBuilder | The connection string builder. |
settings | Optional settings object. | |
리턴 | System |
public SqlServerDataSource ( string connectionString, |
||
connectionString | string | The connection string. |
settings | Optional settings object. | |
리턴 | System |
public SqlServerDataSource ( string name, string connectionString, |
||
name | string | Name of the data source. |
connectionString | string | The connection string. |
settings | Optional settings object. | |
리턴 | System |
public WithCache ( ICacheAdapter cache ) : |
||
cache | ICacheAdapter | The cache. |
리턴 |
public WithRules ( IEnumerable |
||
additionalRules | IEnumerable |
The additional rules. |
리턴 |
public WithSettings ( |
||
settings | The new settings to use. | |
리턴 |
public WithUser ( object userValue ) : |
||
userValue | object | The user value. |
리턴 |