DbExpressionBuilder.BindAs Method (DbExpression, String)
Creates a new DbExpressionBinding that uses the specified variable name to bind the given expression.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- input
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
The expression to bind.
- varName
-
Type:
System.String
The variable name that should be used for the binding.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpressionBindingA new expression binding with the specified expression and variable name.
Exception | Condition |
---|---|
ArgumentNullException | input or varName is null. |
ArgumentException | input does not have a collection result type. |