次の方法で共有


DbExpressionBuilder.New メソッド

定義

オーバーロード

New(TypeUsage, IEnumerable<DbExpression>)

新しい DbNewInstanceExpression を作成します。 型引数がコレクション型の場合、コレクションの要素が arguments によって指定されます。 それ以外の場合、arguments は新しいインスタンスのプロパティまたは列の値として使用されます。

New(TypeUsage, DbExpression[])

新しい DbNewInstanceExpression を作成します。 型引数がコレクション型の場合、コレクションの要素が arguments によって指定されます。 それ以外の場合、arguments は新しいインスタンスのプロパティまたは列の値として使用されます。

New(TypeUsage, IEnumerable<DbExpression>)

新しい DbNewInstanceExpression を作成します。 型引数がコレクション型の場合、コレクションの要素が arguments によって指定されます。 それ以外の場合、arguments は新しいインスタンスのプロパティまたは列の値として使用されます。

public static System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression New (this System.Data.Entity.Core.Metadata.Edm.TypeUsage instanceType, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Common.CommandTrees.DbExpression> arguments);
static member New : System.Data.Entity.Core.Metadata.Edm.TypeUsage * seq<System.Data.Entity.Core.Common.CommandTrees.DbExpression> -> System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression
<Extension()>
Public Function New (instanceType As TypeUsage, arguments As IEnumerable(Of DbExpression)) As DbNewInstanceExpression

パラメーター

instanceType
TypeUsage

新しいインスタンスの型。

arguments
IEnumerable<DbExpression>

新しいインスタンスの値を指定する式。インスタンスの型に従って解釈されます。

戻り値

指定された型と引数を持つ新しい DbNewInstanceExpression。

例外

instanceType または引数が null であるか、引数に null が含まれています。

引数が空であるか、含まれている式の結果の型が instanceType の要件と一致しません (解説セクションで説明します)。

適用対象

New(TypeUsage, DbExpression[])

新しい DbNewInstanceExpression を作成します。 型引数がコレクション型の場合、コレクションの要素が arguments によって指定されます。 それ以外の場合、arguments は新しいインスタンスのプロパティまたは列の値として使用されます。

public static System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression New (this System.Data.Entity.Core.Metadata.Edm.TypeUsage instanceType, params System.Data.Entity.Core.Common.CommandTrees.DbExpression[] arguments);
static member New : System.Data.Entity.Core.Metadata.Edm.TypeUsage * System.Data.Entity.Core.Common.CommandTrees.DbExpression[] -> System.Data.Entity.Core.Common.CommandTrees.DbNewInstanceExpression
<Extension()>
Public Function New (instanceType As TypeUsage, ParamArray arguments As DbExpression()) As DbNewInstanceExpression

パラメーター

instanceType
TypeUsage

新しいインスタンスの型。

arguments
DbExpression[]

新しいインスタンスの値を指定する式。インスタンスの型に従って解釈されます。

戻り値

指定された型と引数を持つ新しい DbNewInstanceExpression。

例外

instanceType または引数が null であるか、引数に null が含まれています。

引数が空であるか、含まれている式の結果の型が instanceType の要件と一致しません (解説セクションで説明します)。

適用対象