8 instantiations of ObjectParameter
System.Data.Entity (5)
System\Data\Objects\DataClasses\RelatedEnd.cs (2)
578
queryParam = new
ObjectParameter
(paramNameGen.Next(), parameterClrType);
584
queryParam = new
ObjectParameter
(paramNameGen.Next(), value);
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
319
ObjectParameter parameter = new
ObjectParameter
(queryParameter.ParameterReference.ParameterName, queryParameter.Type);
System\Data\Objects\ObjectContext.cs (1)
2523
parameters[i] = new
ObjectParameter
(parameterName, members[i].Value);
System\Data\Objects\ObjectParameter.cs (1)
313
return new
ObjectParameter
(this);
System.Web.Entity (3)
System\Data\WebControls\EntityDataSource.cs (2)
723
objectParameters.Add(new
ObjectParameter
(wcParam.Name, wcParam.Value));
727
objectParameters.Add(new
ObjectParameter
(wcParam.Name, wcParam.ClrType));
System\Data\WebControls\EntityDataSourceView.cs (1)
825
whereParameterList.Add(new
ObjectParameter
(namedParameterName, de.Value));
133 references to ObjectParameter
System.Data.Entity (83)
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
568
ObjectParameter
queryParam;
System\Data\Objects\ELinq\CompiledELinqQueryState.cs (4)
80
ReadOnlyCollection<KeyValuePair<
ObjectParameter
, QueryParameterExpression>> parameters = converter.GetParameters();
112
ReadOnlyCollection<KeyValuePair<
ObjectParameter
, QueryParameterExpression>> parameters = converter.GetParameters();
157
foreach (KeyValuePair<
ObjectParameter
, QueryParameterExpression> pair in plan.CompiledQueryParameters)
165
ObjectParameter
convertedParam = pair.Key.ShallowCopy();
System\Data\Objects\ELinq\ELinqQueryState.cs (6)
36
private ReadOnlyCollection<KeyValuePair<
ObjectParameter
, QueryParameterExpression>> _linqParameters;
148
foreach (KeyValuePair<
ObjectParameter
, QueryParameterExpression> pair in _linqParameters)
154
ObjectParameter
convertedParam = pair.Key;
217
foreach (KeyValuePair<
ObjectParameter
, QueryParameterExpression> pair in _linqParameters)
219
ObjectParameter
parameter = pair.Key;
289
bool wasLocked = ((ICollection<
ObjectParameter
>)this.Parameters).IsReadOnly;
System\Data\Objects\ELinq\ExpressionConverter.cs (9)
38
private List<KeyValuePair<
ObjectParameter
, QueryParameterExpression>> _parameters;
217
internal System.Collections.ObjectModel.ReadOnlyCollection<KeyValuePair<
ObjectParameter
, QueryParameterExpression>> GetParameters()
315
_parameters = new List<KeyValuePair<
ObjectParameter
, QueryParameterExpression>>();
319
ObjectParameter
parameter = new ObjectParameter(queryParameter.ParameterReference.ParameterName, queryParameter.Type);
320
_parameters.Add(new KeyValuePair<
ObjectParameter
, QueryParameterExpression>(parameter, queryParameter));
689
this._parameters = new List<KeyValuePair<
ObjectParameter
, QueryParameterExpression>>();
691
foreach (
ObjectParameter
prm in inlineQuery.QueryState.Parameters)
693
this._parameters.Add(new KeyValuePair<
ObjectParameter
, QueryParameterExpression>(prm.ShallowCopy(), null));
735
ObjectParameter
objParam = objectParameters[expression.ParameterName];
System\Data\Objects\Internal\EntitySqlQueryBuilder.cs (17)
46
/// Merges <see cref="
ObjectParameter
"/>s from a source ObjectQuery with ObjectParameters specified as an argument to a builder method.
53
private static ObjectParameterCollection MergeParameters(ObjectContext context, ObjectParameterCollection sourceQueryParams,
ObjectParameter
[] builderMethodParams)
67
foreach (
ObjectParameter
builderParam in builderMethodParams)
76
/// Merges <see cref="
ObjectParameter
"/>s from two ObjectQuery arguments to SetOp builder methods (Except, Intersect, Union, UnionAll).
104
foreach (
ObjectParameter
sourceParam in sourceParams)
113
private static ObjectQueryState NewBuilderQuery(ObjectQueryState sourceQuery, Type elementType, StringBuilder queryText, Span newSpan, IEnumerable<
ObjectParameter
> enumerableParams)
118
private static ObjectQueryState NewBuilderQuery(ObjectQueryState sourceQuery, Type elementType, StringBuilder queryText, bool allowsLimit, Span newSpan, IEnumerable<
ObjectParameter
> enumerableParams)
124
foreach (
ObjectParameter
objectParam in enumerableParams)
200
private static ObjectQueryState BuildSelectOrSelectValue(ObjectQueryState query, string alias, string projection,
ObjectParameter
[] parameters, string projectOp, Type elementType)
232
private static ObjectQueryState BuildOrderByOrWhere(ObjectQueryState query, string alias, string predicateOrKeys,
ObjectParameter
[] parameters, string op, string skipCount, bool allowsLimit)
331
internal static ObjectQueryState GroupBy(ObjectQueryState query, string alias, string keys, string projection,
ObjectParameter
[] parameters)
444
internal static ObjectQueryState OrderBy(ObjectQueryState query, string alias, string keys,
ObjectParameter
[] parameters)
455
internal static ObjectQueryState Select(ObjectQueryState query, string alias, string projection,
ObjectParameter
[] parameters)
466
internal static ObjectQueryState SelectValue(ObjectQueryState query, string alias, string projection,
ObjectParameter
[] parameters, Type projectedType)
480
internal static ObjectQueryState Skip(ObjectQueryState query, string alias, string keys, string count,
ObjectParameter
[] parameters)
502
internal static ObjectQueryState Top(ObjectQueryState query, string alias, string count,
ObjectParameter
[] parameters)
598
internal static ObjectQueryState Where(ObjectQueryState query, string alias, string predicate,
ObjectParameter
[] parameters)
System\Data\Objects\Internal\EntitySqlQueryState.cs (1)
236
foreach (
ObjectParameter
parameter in this.Parameters)
System\Data\Objects\Internal\ObjectQueryExecutionPlan.cs (2)
21
using CompiledQueryParameters = System.Collections.ObjectModel.ReadOnlyCollection<System.Collections.Generic.KeyValuePair<
ObjectParameter
, System.Data.Objects.ELinq.QueryParameterExpression>>;
177
foreach (
ObjectParameter
parameter in parameterValues)
System\Data\Objects\ObjectContext.cs (14)
1628
public ObjectQuery<T> CreateQuery<T>(string queryString, params
ObjectParameter
[] parameters)
1643
foreach (
ObjectParameter
parameter in parameters)
2513
ObjectParameter
[] parameters = new
ObjectParameter
[members.Length];
2557
public ObjectResult<TElement> ExecuteFunction<TElement>(string functionName, params
ObjectParameter
[] parameters)
2573
public ObjectResult<TElement> ExecuteFunction<TElement>(string functionName, MergeOption mergeOption, params
ObjectParameter
[] parameters)
2604
public int ExecuteFunction(string functionName, params
ObjectParameter
[] parameters)
2636
private EntityCommand CreateEntityCommandForFunctionImport(string functionName, out EdmFunction functionImport, params
ObjectParameter
[] parameters)
2640
ObjectParameter
parameter = parameters[i];
2763
private void PopulateFunctionImportEntityCommandParameters(
ObjectParameter
[] parameters, EdmFunction functionImport, EntityCommand command)
2768
ObjectParameter
objectParameter = parameters[i];
2833
private static FunctionParameter FindParameterMetadata(EdmFunction functionImport,
ObjectParameter
[] parameters, int ordinal)
3320
private readonly
ObjectParameter
_objectParameter;
3322
internal ParameterBinder(EntityParameter entityParameter,
ObjectParameter
objectParameter)
System\Data\Objects\ObjectParameter.cs (4)
83
if (!
ObjectParameter
.ValidateParameterName(name))
127
if (!
ObjectParameter
.ValidateParameterName(name))
161
private ObjectParameter(
ObjectParameter
template)
311
internal
ObjectParameter
ShallowCopy()
System\Data\Objects\ObjectParameterCollection.cs (17)
23
public sealed class ObjectParameterCollection : ICollection<
ObjectParameter
>
50
_parameters = new List<
ObjectParameter
>();
71
private List<
ObjectParameter
> _parameters;
109
bool ICollection<
ObjectParameter
>.IsReadOnly
139
public
ObjectParameter
this[string name]
190
public void Add (
ObjectParameter
parameter)
249
public bool Contains (
ObjectParameter
parameter)
301
public void CopyTo (
ObjectParameter
[] array, int index)
328
public bool Remove (
ObjectParameter
parameter)
355
IEnumerator<
ObjectParameter
> IEnumerable<
ObjectParameter
>.GetEnumerator()
357
return ((System.Collections.Generic.ICollection<
ObjectParameter
>)this._parameters).GetEnumerator();
391
ObjectParameter
theParam = this._parameters[0];
410
ObjectParameter
thisParam = this._parameters[idx];
432
/// Creates a new copy of the specified parameter collection containing copies of its element <see cref="
ObjectParameter
"/>s.
445
foreach (
ObjectParameter
param in copyParams)
470
foreach (
ObjectParameter
parameter in this._parameters)
System\Data\Objects\ObjectQuery_EntitySqlExtensions.cs (8)
225
if (!
ObjectParameter
.ValidateParameterName(value))
299
public ObjectQuery<DbDataRecord> GroupBy(string keys, string projection, params
ObjectParameter
[] parameters)
400
public ObjectQuery<T> OrderBy (string keys, params
ObjectParameter
[] parameters)
432
public ObjectQuery<DbDataRecord> Select (string projection, params
ObjectParameter
[] parameters)
464
public ObjectQuery<TResultType> SelectValue<TResultType> (string projection, params
ObjectParameter
[] parameters)
504
public ObjectQuery<T> Skip (string keys, string count, params
ObjectParameter
[] parameters)
543
public ObjectQuery<T> Top (string count, params
ObjectParameter
[] parameters)
620
public ObjectQuery<T> Where (string predicate, params
ObjectParameter
[] parameters)
System.Data.Entity.Design (4)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (4)
588
new CodeVariableDeclarationStatement(TypeReference.ForType(typeof(
ObjectParameter
)), variableName));
592
new CodeObjectCreateExpression(TypeReference.ForType(typeof(
ObjectParameter
)),
596
new CodeObjectCreateExpression(TypeReference.ForType(typeof(
ObjectParameter
)),
653
return typeof(
ObjectParameter
);
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
2362
generator.Emit(System.Reflection.Emit.OpCodes.Newarr, typeof(
ObjectParameter
));
System.Web.DynamicData (1)
DynamicData\ModelProviders\EFTableProvider.cs (1)
70
new object[] { CreateQueryString, new
ObjectParameter
[0] });
System.Web.Entity (44)
System\Data\WebControls\EntityDataSource.cs (7)
710
private
ObjectParameter
[] CreateObjectParametersFromParameterCollection(ParameterCollection paramColl)
714
List<
ObjectParameter
> objectParameters = new List<
ObjectParameter
>();
735
internal
ObjectParameter
[] GetOrderByParameters()
740
internal
ObjectParameter
[] GetWhereParameters()
746
internal
ObjectParameter
[] GetCommandParameters()
751
internal
ObjectParameter
[] GetSelectParameters()
System\Data\WebControls\EntityDataSourceQueryBuilder.cs (27)
25
private readonly
ObjectParameter
[] _commandParameters;
27
private readonly
ObjectParameter
[] _whereParameters;
35
string commandText,
ObjectParameter
[] commandParameters,
36
string whereExpression,
ObjectParameter
[] whereParameters, string entitySetQueryExpression,
37
string selectExpression, string groupByExpression,
ObjectParameter
[] selectParameters,
52
string commandText,
ObjectParameter
[] commandParameters,
53
string whereExpression,
ObjectParameter
[] whereParameters, string entitySetQueryExpression,
54
string selectExpression, string groupByExpression,
ObjectParameter
[] selectParameters,
115
ObjectParameter
[] orderByParameters;
126
ObjectParameter
[] orderByParameters;
182
string commandText,
ObjectParameter
[] commandParameters,
183
string whereExpression,
ObjectParameter
[] whereParameters, string entitySetQueryExpression,
184
string selectExpression, string groupByExpression,
ObjectParameter
[] selectParameters,
202
string commandText,
ObjectParameter
[] commandParameters,
203
string whereExpression,
ObjectParameter
[] whereParameters, string entitySetQueryExpression,
204
string selectExpression, string groupByExpression,
ObjectParameter
[] selectParameters,
227
private readonly
ObjectParameter
[] _selectParameters;
230
string commandText,
ObjectParameter
[] commandParameters,
231
string whereExpression,
ObjectParameter
[] whereParameters, string entitySetQueryExpression,
232
string selectExpression, string groupByExpression,
ObjectParameter
[] selectParameters,
248
string commandText,
ObjectParameter
[] commandParameters,
249
string whereExpression,
ObjectParameter
[] whereParameters, string entitySetQueryExpression,
250
string selectExpression, string groupByExpression,
ObjectParameter
[] selectParameters,
280
internal static readonly
ObjectParameter
[] EmptyObjectParameters = new
ObjectParameter
[] { };
285
ObjectParameter
[] commandParameters)
288
ObjectParameter
[] queryParameters;
System\Data\WebControls\EntityDataSourceView.cs (7)
184
private static readonly Type[] queryBuilderCreatorArgTypes = { typeof(DataSourceSelectArguments), typeof(string), typeof(
ObjectParameter
[]),
185
typeof(string), typeof(
ObjectParameter
[]), typeof(string),
186
typeof(string), typeof(string), typeof(
ObjectParameter
[]),
246
ObjectParameter
[] whereParameters;
783
private void GenerateWhereClause(out string whereClause, out
ObjectParameter
[] whereParameters)
796
List<
ObjectParameter
> whereParameterList = new List<
ObjectParameter
>();
System\Data\WebControls\OrderByBuilder.cs (3)
45
internal void Generate(TypeUsage tu, out string orderBy, out
ObjectParameter
[] orderByParameters, bool applySortExpression)
51
private void GenerateOrderByClause(TypeUsage tu, out string orderByClause, out
ObjectParameter
[] orderByObjectParameters, bool applySortExpression)
94
orderByObjectParameters = new
ObjectParameter
[] { };