forked from dotnet/efcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCompiledQuery.cs
More file actions
198 lines (178 loc) · 16.7 KB
/
Copy pathCompiledQuery.cs
File metadata and controls
198 lines (178 loc) · 16.7 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// <auto-generated />
using System;
using System.Linq.Expressions;
using JetBrains.Annotations;
#nullable enable
namespace Microsoft.EntityFrameworkCore.Query.Internal
{
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public class CompiledQuery<TContext, TResult> : CompiledQueryBase<TContext, TResult>
where TContext : DbContext
{
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public CompiledQuery([NotNull] LambdaExpression queryExpression)
: base(queryExpression)
{
}
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute(
[NotNull] TContext context)
=> ExecuteCore(context);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1>(
[NotNull] TContext context, [CanBeNull] TParam1 param1)
=> ExecuteCore(context, param1);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1, TParam2>(
[NotNull] TContext context, [CanBeNull] TParam1 param1, [CanBeNull] TParam2 param2)
=> ExecuteCore(context, param1, param2);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1, TParam2, TParam3>(
[NotNull] TContext context, [CanBeNull] TParam1 param1, [CanBeNull] TParam2 param2, [CanBeNull] TParam3 param3)
=> ExecuteCore(context, param1, param2, param3);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1, TParam2, TParam3, TParam4>(
[NotNull] TContext context, [CanBeNull] TParam1 param1, [CanBeNull] TParam2 param2, [CanBeNull] TParam3 param3, [CanBeNull] TParam4 param4)
=> ExecuteCore(context, param1, param2, param3, param4);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1, TParam2, TParam3, TParam4, TParam5>(
[NotNull] TContext context, [CanBeNull] TParam1 param1, [CanBeNull] TParam2 param2, [CanBeNull] TParam3 param3, [CanBeNull] TParam4 param4, [CanBeNull] TParam5 param5)
=> ExecuteCore(context, param1, param2, param3, param4, param5);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6>(
[NotNull] TContext context, [CanBeNull] TParam1 param1, [CanBeNull] TParam2 param2, [CanBeNull] TParam3 param3, [CanBeNull] TParam4 param4, [CanBeNull] TParam5 param5, [CanBeNull] TParam6 param6)
=> ExecuteCore(context, param1, param2, param3, param4, param5, param6);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7>(
[NotNull] TContext context, [CanBeNull] TParam1 param1, [CanBeNull] TParam2 param2, [CanBeNull] TParam3 param3, [CanBeNull] TParam4 param4, [CanBeNull] TParam5 param5, [CanBeNull] TParam6 param6, [CanBeNull] TParam7 param7)
=> ExecuteCore(context, param1, param2, param3, param4, param5, param6, param7);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8>(
[NotNull] TContext context, [CanBeNull] TParam1 param1, [CanBeNull] TParam2 param2, [CanBeNull] TParam3 param3, [CanBeNull] TParam4 param4, [CanBeNull] TParam5 param5, [CanBeNull] TParam6 param6, [CanBeNull] TParam7 param7, [CanBeNull] TParam8 param8)
=> ExecuteCore(context, param1, param2, param3, param4, param5, param6, param7, param8);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9>(
[NotNull] TContext context, [CanBeNull] TParam1 param1, [CanBeNull] TParam2 param2, [CanBeNull] TParam3 param3, [CanBeNull] TParam4 param4, [CanBeNull] TParam5 param5, [CanBeNull] TParam6 param6, [CanBeNull] TParam7 param7, [CanBeNull] TParam8 param8, [CanBeNull] TParam9 param9)
=> ExecuteCore(context, param1, param2, param3, param4, param5, param6, param7, param8, param9);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10>(
[NotNull] TContext context, [CanBeNull] TParam1 param1, [CanBeNull] TParam2 param2, [CanBeNull] TParam3 param3, [CanBeNull] TParam4 param4, [CanBeNull] TParam5 param5, [CanBeNull] TParam6 param6, [CanBeNull] TParam7 param7, [CanBeNull] TParam8 param8, [CanBeNull] TParam9 param9, [CanBeNull] TParam10 param10)
=> ExecuteCore(context, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11>(
[NotNull] TContext context, [CanBeNull] TParam1 param1, [CanBeNull] TParam2 param2, [CanBeNull] TParam3 param3, [CanBeNull] TParam4 param4, [CanBeNull] TParam5 param5, [CanBeNull] TParam6 param6, [CanBeNull] TParam7 param7, [CanBeNull] TParam8 param8, [CanBeNull] TParam9 param9, [CanBeNull] TParam10 param10, [CanBeNull] TParam11 param11)
=> ExecuteCore(context, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12>(
[NotNull] TContext context, [CanBeNull] TParam1 param1, [CanBeNull] TParam2 param2, [CanBeNull] TParam3 param3, [CanBeNull] TParam4 param4, [CanBeNull] TParam5 param5, [CanBeNull] TParam6 param6, [CanBeNull] TParam7 param7, [CanBeNull] TParam8 param8, [CanBeNull] TParam9 param9, [CanBeNull] TParam10 param10, [CanBeNull] TParam11 param11, [CanBeNull] TParam12 param12)
=> ExecuteCore(context, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13>(
[NotNull] TContext context, [CanBeNull] TParam1 param1, [CanBeNull] TParam2 param2, [CanBeNull] TParam3 param3, [CanBeNull] TParam4 param4, [CanBeNull] TParam5 param5, [CanBeNull] TParam6 param6, [CanBeNull] TParam7 param7, [CanBeNull] TParam8 param8, [CanBeNull] TParam9 param9, [CanBeNull] TParam10 param10, [CanBeNull] TParam11 param11, [CanBeNull] TParam12 param12, [CanBeNull] TParam13 param13)
=> ExecuteCore(context, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14>(
[NotNull] TContext context, [CanBeNull] TParam1 param1, [CanBeNull] TParam2 param2, [CanBeNull] TParam3 param3, [CanBeNull] TParam4 param4, [CanBeNull] TParam5 param5, [CanBeNull] TParam6 param6, [CanBeNull] TParam7 param7, [CanBeNull] TParam8 param8, [CanBeNull] TParam9 param9, [CanBeNull] TParam10 param10, [CanBeNull] TParam11 param11, [CanBeNull] TParam12 param12, [CanBeNull] TParam13 param13, [CanBeNull] TParam14 param14)
=> ExecuteCore(context, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14);
/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public virtual TResult Execute<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TParam11, TParam12, TParam13, TParam14, TParam15>(
[NotNull] TContext context, [CanBeNull] TParam1 param1, [CanBeNull] TParam2 param2, [CanBeNull] TParam3 param3, [CanBeNull] TParam4 param4, [CanBeNull] TParam5 param5, [CanBeNull] TParam6 param6, [CanBeNull] TParam7 param7, [CanBeNull] TParam8 param8, [CanBeNull] TParam9 param9, [CanBeNull] TParam10 param10, [CanBeNull] TParam11 param11, [CanBeNull] TParam12 param12, [CanBeNull] TParam13 param13, [CanBeNull] TParam14 param14, [CanBeNull] TParam15 param15)
=> ExecuteCore(context, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15);
/// <inheritdoc />
protected override Func<QueryContext, TResult> CreateCompiledQuery(
IQueryCompiler queryCompiler, Expression expression)
=> queryCompiler.CreateCompiledQuery<TResult>(expression);
}
}