DbExpressionBuilder.OuterApply Method
Creates a new DbApplyExpression that evaluates the given apply expression once for each element of a given input set, producing a collection of rows with corresponding input and apply columns. Rows for which apply evaluates to an empty set have an apply column value of null.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | OuterApply(DbExpression, Func<DbExpression, KeyValuePair<String, DbExpression>>) | Creates a new DbApplyExpression that evaluates the given apply expression once for each element of a given input set, producing a collection of rows with corresponding input and apply columns. Rows for which apply evaluates to an empty set have an apply column value of null. |
![]() ![]() | OuterApply(DbExpressionBinding, DbExpressionBinding) | Creates a new DbApplyExpression that evaluates the given apply expression once for each element of a given input set, producing a collection of rows with corresponding input and apply columns. Rows for which apply evaluates to an empty set have an apply column value of null. |
DbExpressionBuilder.OuterApply Method (DbExpression, Func<DbExpression, KeyValuePair<String, DbExpression>>)
Creates a new DbApplyExpression that evaluates the given apply expression once for each element of a given input set, producing a collection of rows with corresponding input and apply columns. Rows for which apply evaluates to an empty set have an apply column value of null.
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")] public static DbApplyExpression OuterApply( this DbExpression source, Func<DbExpression, KeyValuePair<string, DbExpression>> apply )
Parameters
- source
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
A DbExpression that specifies the input set.
- apply
-
Type:
System.Func<DbExpression, KeyValuePair<String, DbExpression>>
A method that specifies the logic to evaluate once for each member of the input set.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbApplyExpressionAn new DbApplyExpression with the specified input and apply bindings and an DbExpressionKind of OuterApply.
Exception | Condition |
---|---|
ArgumentNullException | source or apply is null. |
ArgumentException | source does not have a collection result type. |
ArgumentNullException | The result of apply contains a name or expression that is null. |
ArgumentException | The result of apply contains a name or expression that is not valid in an expression binding. |
DbExpressionBuilder.OuterApply Method (DbExpressionBinding, DbExpressionBinding)
Creates a new DbApplyExpression that evaluates the given apply expression once for each element of a given input set, producing a collection of rows with corresponding input and apply columns. Rows for which apply evaluates to an empty set have an apply column value of null.
public static DbApplyExpression OuterApply( this DbExpressionBinding input, DbExpressionBinding apply )
Parameters
- input
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding
A DbExpressionBinding that specifies the input set.
- apply
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding
A DbExpressionBinding that specifies logic to evaluate once for each member of the input set.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbApplyExpressionAn new DbApplyExpression with the specified input and apply bindings and an DbExpressionKind of OuterApply.
Exception | Condition |
---|---|
ArgumentNullException | input or apply is null. |