DbExpressionBuilder.As メソッド (DbAggregate, String)
[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]
指定された引数をキーと値のペア オブジェクトとして返します。
名前空間: System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder
アセンブリ: EntityFramework (EntityFramework.dll 内)
構文
'宣言
<ExtensionAttribute> _
Public Shared Function As ( _
value As DbAggregate, _
alias As String _
) As KeyValuePair(Of String, DbAggregate)
'使用
Dim value As DbAggregate
Dim alias As String
Dim returnValue As KeyValuePair(Of String, DbAggregate)
returnValue = value.As(alias)
public static KeyValuePair<string, DbAggregate> As(
this DbAggregate value,
string alias
)
[ExtensionAttribute]
public:
static KeyValuePair<String^, DbAggregate^> As(
DbAggregate^ value,
String^ alias
)
static member As :
value:DbAggregate *
alias:string -> KeyValuePair<string, DbAggregate>
public static function As(
value : DbAggregate,
alias : String
) : KeyValuePair<String, DbAggregate>
パラメーター
- value
型 : System.Data.Entity.Core.Common.CommandTrees.DbAggregate
キーと値のペア内の値。
- alias
型 : System.String
キーと値のペア内のキー。
戻り値
型 : System.Collections.Generic.KeyValuePair<String, DbAggregate>
キーと値のペア オブジェクト。
使用上の注意
Visual Basic および Visual C# では、このメソッドを、DbAggregate 型のオブジェクトのインスタンス メソッドとして呼び出すことができます。インスタンス メソッド構文を使用してこのメソッドを呼び出す場合は、最初のパラメーターを省略します。詳細については、「https://msdn.microsoft.com/ja-jp/library/bb384936(v=vs.113)」または「https://msdn.microsoft.com/ja-jp/library/bb383977(v=vs.113)」を参照してください。
参照
参照
System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder 名前空間