EntityFunctions.VarP 方法 (IEnumerable<Nullable<Double>>)
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
作为 LINQ to Entities 查询的一部分使用时,此方法调用规范 VarP EDM 函数以计算总体的方差。
命名空间: System.Data.Entity.Core.Objects
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
<DbFunctionAttribute("Edm", "VarP")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")> _
Public Shared Function VarP ( _
collection As IEnumerable(Of Nullable(Of Double)) _
) As Nullable(Of Double)
用法
Dim collection As IEnumerable(Of Nullable(Of Double))
Dim returnValue As Nullable(Of Double)
returnValue = EntityFunctions.VarP(collection)
[DbFunctionAttribute("Edm", "VarP")]
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public static Nullable<double> VarP(
IEnumerable<Nullable<double>> collection
)
[DbFunctionAttribute(L"Edm", L"VarP")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1006:DoNotNestGenericTypesInMemberSignatures")]
public:
static Nullable<double> VarP(
IEnumerable<Nullable<double>>^ collection
)
[<DbFunctionAttribute("Edm", "VarP")>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")>]
static member VarP :
collection:IEnumerable<Nullable<float>> -> Nullable<float>
public static function VarP(
collection : IEnumerable<Nullable<double>>
) : Nullable<double>
参数
- collection
类型:System.Collections.Generic.IEnumerable<Nullable<Double>>
要对其执行计算的集合。
返回值
类型:System.Nullable<Double>
总体的方差。
备注
无法直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。 此函数将被转换为数据库中对应的函数。