-
Notifications
You must be signed in to change notification settings - Fork 5
/
ClientQueryExecutionContext.cs
74 lines (66 loc) · 2.53 KB
/
ClientQueryExecutionContext.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ClientQueryExecutionContext.cs" company="Kephas Software SRL">
// Copyright (c) Kephas Software SRL. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// </copyright>
// <summary>
// Implements the client query execution context class.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
using Kephas.Services;
namespace Kephas.Data.Client.Queries
{
using System;
using Kephas.Data.Client.Queries.Conversion;
using Kephas.Data.Conversion;
using Kephas.Services;
/// <summary>
/// A client query execution context.
/// </summary>
public class ClientQueryExecutionContext : Context, IClientQueryExecutionContext
{
/// <summary>
/// Initializes a new instance of the <see cref="ClientQueryExecutionContext"/> class.
/// </summary>
/// <param name="serviceProvider">The injector.</param>
public ClientQueryExecutionContext(IServiceProvider serviceProvider)
: base(serviceProvider)
{
}
/// <summary>
/// Gets or sets the type of the entity.
/// </summary>
/// <value>
/// The type of the entity.
/// </value>
public Type EntityType { get; set; }
/// <summary>
/// Gets or sets the type of the client entity.
/// </summary>
/// <value>
/// The type of the client entity.
/// </value>
public Type ClientEntityType { get; set; }
/// <summary>
/// Gets or sets options for controlling the operation.
/// </summary>
/// <value>
/// The options.
/// </value>
public object Options { get; set; }
/// <summary>
/// Gets or sets the client query conversion context configuration.
/// </summary>
/// <value>
/// The client query conversion context configuration.
/// </value>
public Action<IClientQueryConversionContext> QueryConversionConfig { get; set; }
/// <summary>
/// Gets or sets the data conversion context configuration.
/// </summary>
/// <value>
/// The data conversion context configuration.
/// </value>
public Action<object, IDataConversionContext> DataConversionConfig { get; set; }
}
}