Struct MsSqlCRUDQueryExecutionContext
Provides query execution environment in MySql context
Implements
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Data.Access.MsSql
Assembly: Azos.MsSql.dll
Syntax
public struct MsSqlCRUDQueryExecutionContext : ICRUDQueryExecutionContext
Constructors
MsSqlCRUDQueryExecutionContext(MsSqlDataStoreBase, SqlConnection, SqlTransaction)
Declaration
public MsSqlCRUDQueryExecutionContext(MsSqlDataStoreBase store, SqlConnection cnn, SqlTransaction trans)
Parameters
Type | Name | Description |
---|---|---|
MsSqlDataStoreBase | store | |
System.Data.SqlClient.SqlConnection | cnn | |
System.Data.SqlClient.SqlTransaction | trans |
Fields
Connection
Declaration
public readonly SqlConnection Connection
Field Value
Type | Description |
---|---|
System.Data.SqlClient.SqlConnection |
DataStore
Declaration
public readonly MsSqlDataStoreBase DataStore
Field Value
Type | Description |
---|---|
MsSqlDataStoreBase |
Transaction
Declaration
public readonly SqlTransaction Transaction
Field Value
Type | Description |
---|---|
System.Data.SqlClient.SqlTransaction |
Methods
CLRValueToDB(MsSqlDataStoreBase, Object, out Nullable<SqlDbType>)
Based on store settings, converts CLR value to MySQL-acceptable value, i.e. GDID -> BYTE[].
Declaration
public object CLRValueToDB(MsSqlDataStoreBase store, object value, out SqlDbType? convertedDbType)
Parameters
Type | Name | Description |
---|---|---|
MsSqlDataStoreBase | store | |
System.Object | value | |
System.Nullable<System.Data.SqlDbType> | convertedDbType |
Returns
Type | Description |
---|---|
System.Object |
ConvertParameters(SqlParameterCollection)
Based on store settings, converts query parameters into MySQL-acceptable values, i.e. GDID -> BYTe[]. This function is not idempotent
Declaration
public void ConvertParameters(SqlParameterCollection pars)
Parameters
Type | Name | Description |
---|---|---|
System.Data.SqlClient.SqlParameterCollection | pars |