Struct MySqlCRUDQueryExecutionContext
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.MySql
Assembly: Azos.MySql.dll
Syntax
public struct MySqlCRUDQueryExecutionContext : ICRUDQueryExecutionContext
Constructors
MySqlCRUDQueryExecutionContext(MySQLDataStoreBase, MySqlConnection, MySqlTransaction)
Declaration
public MySqlCRUDQueryExecutionContext(MySQLDataStoreBase store, MySqlConnection cnn, MySqlTransaction trans)
Parameters
Type | Name | Description |
---|---|---|
MySQLDataStoreBase | store | |
MySqlConnection | cnn | |
MySqlTransaction | trans |
Fields
Connection
Declaration
public readonly MySqlConnection Connection
Field Value
Type | Description |
---|---|
MySqlConnection |
DataStore
Declaration
public readonly MySQLDataStoreBase DataStore
Field Value
Type | Description |
---|---|
MySQLDataStoreBase |
Transaction
Declaration
public readonly MySqlTransaction Transaction
Field Value
Type | Description |
---|---|
MySqlTransaction |
Methods
CLRValueToDB(MySQLDataStoreBase, Object, out Nullable<MySqlDbType>)
Based on store settings, converts CLR value to MySQL-acceptable value, i.e. GDID -> BYTE[].
Declaration
public object CLRValueToDB(MySQLDataStoreBase store, object value, out MySqlDbType? convertedDbType)
Parameters
Type | Name | Description |
---|---|---|
MySQLDataStoreBase | store | |
System.Object | value | |
System.Nullable<MySqlDbType> | convertedDbType |
Returns
Type | Description |
---|---|
System.Object |
ConvertParameters(MySqlParameterCollection)
Based on store settings, converts query parameters into MySQL-acceptable values, i.e. GDID -> BYTe[]. This function is not idempotent
Declaration
public void ConvertParameters(MySqlParameterCollection pars)
Parameters
Type | Name | Description |
---|---|---|
MySqlParameterCollection | pars |