Here are the examples of the csharp api class System.Data.Common.CommandTrees.ExpressionBuilder.DbExpressionBuilder.Parameter(System.Data.Metadata.Edm.TypeUsage, string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
View licensepublic override DbExpression Visit(DbParameterReferenceExpression expression) { EntityUtil.CheckArgumentNull(expression, "expression"); return VisitTerminal(expression, newType => CqtBuilder.Parameter(newType, expression.ParameterName)); }
0
2. Example
View licenseinternal override CqtExpression Translate(ExpressionConverter parent, MethodCallExpression call) { DbExpression argument = parent.TranslateExpression(call.Arguments[0]); DbExpression recreatedArgument; TypeUsage updatedType = argument.ResultType.ShallowCopy(new FacetValues { Unicode = _isUnicode }); switch (argument.ExpressionKind) { case DbExpressionKind.Constant: recreatedArgument = DbExpressionBuilder.Constant(updatedType, ((DbConstantExpression)argument).Value); break; case DbExpressionKind.ParameterReference: recreatedArgument = DbExpressionBuilder.Parameter(updatedType, ((DbParameterReferenceExpression)argument).ParameterName); break; case DbExpressionKind.Null: recreatedArgument = DbExpressionBuilder.Null(updatedType); break; default: throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_UnsupportedAsUnicodeAndAsNonUnicode(call.Method)); } return recreatedArgument; }
0
3. Example
View licenseprivate DbExpression ResolveVar(Var referencedVar) { DbExpression retExpr = null/n ..... /n //View Source file for more details /n }