Class MsSqlCRUDScriptQueryHandler
Executes MsSql CRUD script-based queries
Inheritance
System.Object
MsSqlCRUDScriptQueryHandler
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Azos.MsSql.dll
Syntax
public sealed class MsSqlCRUDScriptQueryHandler : CRUDQueryHandler<MsSqlDataStore>, INamed
Constructors
MsSqlCRUDScriptQueryHandler(MsSqlDataStore, QuerySource)
Declaration
public MsSqlCRUDScriptQueryHandler(MsSqlDataStore store, QuerySource source)
Parameters
Methods
Execute(ICRUDQueryExecutionContext, Query, Boolean)
Declaration
public override RowsetBase Execute(ICRUDQueryExecutionContext context, Query query, bool oneDoc = false)
Parameters
Returns
Overrides
ExecuteAsync(ICRUDQueryExecutionContext, Query, Boolean)
Declaration
public override Task<RowsetBase> ExecuteAsync(ICRUDQueryExecutionContext context, Query query, bool oneDoc = false)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<RowsetBase> |
|
Overrides
ExecuteWithoutFetch(ICRUDQueryExecutionContext, Query)
Declaration
public override int ExecuteWithoutFetch(ICRUDQueryExecutionContext context, Query query)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Overrides
ExecuteWithoutFetchAsync(ICRUDQueryExecutionContext, Query)
Declaration
public override Task<int> ExecuteWithoutFetchAsync(ICRUDQueryExecutionContext context, Query query)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Int32> |
|
Overrides
GetSchema(ICRUDQueryExecutionContext, Query)
Declaration
public override Schema GetSchema(ICRUDQueryExecutionContext context, Query query)
Parameters
Returns
Overrides
GetSchemaAsync(ICRUDQueryExecutionContext, Query)
Declaration
public override Task<Schema> GetSchemaAsync(ICRUDQueryExecutionContext context, Query query)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<Schema> |
|
Overrides
GetSchemaForQuery(String, Query, SqlDataReader, QuerySource, out Schema.FieldDef[])
Gets schema from reader taking Query.ResultDocType in consideration
Declaration
public static Schema GetSchemaForQuery(string target, Query query, SqlDataReader reader, QuerySource qSource, out Schema.FieldDef[] toLoad)
Parameters
Returns
GetSchemaFromReader(String, QuerySource, SqlDataReader)
Gets CRUD schema from MsSqlReader per particular QuerySource.
If source is null then all columns from reader are copied.
Note: this code was purposely made provider specific because other providers may treat some nuances differently
Declaration
public static Schema GetSchemaFromReader(string name, QuerySource source, SqlDataReader reader)
Parameters
Type |
Name |
Description |
System.String |
name |
|
QuerySource |
source |
|
System.Data.SqlClient.SqlDataReader |
reader |
|
Returns
OpenCursor(ICRUDQueryExecutionContext, Query)
Declaration
public override Cursor OpenCursor(ICRUDQueryExecutionContext context, Query query)
Parameters
Returns
Overrides
OpenCursorAsync(ICRUDQueryExecutionContext, Query)
Declaration
public override Task<Cursor> OpenCursorAsync(ICRUDQueryExecutionContext context, Query query)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<Cursor> |
|
Overrides
PopulateDoc(MsSqlCRUDQueryExecutionContext, Type, Schema, Schema.FieldDef[], SqlDataReader)
Reads data from reader into rowset. the reader is NOT disposed
Declaration
public static Doc PopulateDoc(MsSqlCRUDQueryExecutionContext context, Type tDoc, Schema schema, Schema.FieldDef[] toLoad, SqlDataReader reader)
Parameters
Returns
PopulateParameters(SqlCommand, Query)
Populates SqlCommand with parameters from CRUD Query object
Note: this code was purposely made provider specific because other providers may treat some nuances differently
Declaration
public void PopulateParameters(SqlCommand cmd, Query query)
Parameters
Type |
Name |
Description |
System.Data.SqlClient.SqlCommand |
cmd |
|
Query |
query |
|
PopulateRowset(MsSqlCRUDQueryExecutionContext, SqlDataReader, String, Query, QuerySource, Boolean)
Reads data from reader into rowset. the reader is NOT disposed
Declaration
public static Rowset PopulateRowset(MsSqlCRUDQueryExecutionContext context, SqlDataReader reader, string target, Query query, QuerySource qSource, bool oneDoc)
Parameters
Returns
Implements
Extension Methods