DbExpressionBuilder.As Method

 

Returns the specified arguments as a key/value pair object.

Namespace:   System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAs(DbAggregate, String)

Returns the specified arguments as a key/value pair object.

System_CAPS_pubmethodSystem_CAPS_staticAs(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.