DbExpressionBuilder.As Method
Returns the specified arguments as a key/value pair object.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | As(DbAggregate, String) | Returns the specified arguments as a key/value pair object. |
![]() ![]() | As(DbExpression, String) | Returns the specified arguments as a key/value pair object. |
DbExpressionBuilder.As Method (DbAggregate, String)
Returns the specified arguments as a key/value pair object.
public static KeyValuePair<string, DbAggregate> As( this DbAggregate value, string alias )
Parameters
- value
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbAggregate
The value in the key/value pair.
- alias
-
Type:
System.String
The key in the key/value pair.
Return Value
Type: System.Collections.Generic.KeyValuePair<String, DbAggregate>A key/value pair object.
DbExpressionBuilder.As Method (DbExpression, String)
Returns the specified arguments as a key/value pair object.
public static KeyValuePair<string, DbExpression> As( this DbExpression value, string alias )
Parameters
- value
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
The value in the key/value pair.
- alias
-
Type:
System.String
The key in the key/value pair.
Return Value
Type: System.Collections.Generic.KeyValuePair<String, DbExpression>A key/value pair object.