DbExpressionBuilder.New 方法

定义

重载

New(TypeUsage, IEnumerable<DbExpression>)

创建一个新的 DbNewInstanceExpression。 如果类型参数为集合类型,参数将指定集合的元素。 否则,参数将用作新实例中的属性值或列值。

New(TypeUsage, DbExpression[])

创建一个新的 DbNewInstanceExpression。 如果类型参数为集合类型,参数将指定集合的元素。 否则,参数将用作新实例中的属性值或列值。

New(TypeUsage, IEnumerable<DbExpression>)

创建一个新的 DbNewInstanceExpression。 如果类型参数为集合类型,参数将指定集合的元素。 否则,参数将用作新实例中的属性值或列值。

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。 如果类型参数为集合类型,参数将指定集合的元素。 否则,参数将用作新实例中的属性值或列值。

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 (的要求。

适用于