DbExpressionBuilder.As Method

Definition

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

Overloads

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.

As(DbAggregate, String)

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

C#
public static System.Collections.Generic.KeyValuePair<string,System.Data.Common.CommandTrees.DbAggregate> As(this System.Data.Common.CommandTrees.DbAggregate value, string alias);

Parameters

value
DbAggregate

The value in the key/value pair.

alias
String

The key in the key/value pair.

Returns

A key/value pair object.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

As(DbExpression, String)

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

C#
public static System.Collections.Generic.KeyValuePair<string,System.Data.Common.CommandTrees.DbExpression> As(this System.Data.Common.CommandTrees.DbExpression value, string alias);

Parameters

value
DbExpression

The value in the key/value pair.

alias
String

The key in the key/value pair.

Returns

A key/value pair object.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1