EntityFunctions.StandardDeviationP 方法 (IEnumerable<Nullable<Int32>>)

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

作为 LINQ to Entities 查询的一部分使用时,此方法调用规范 StDevP EDM 函数以计算总体的标准差。

命名空间:  System.Data.Entity.Core.Objects
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
<DbFunctionAttribute("Edm", "StDevP")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")> _
Public Shared Function StandardDeviationP ( _
    collection As IEnumerable(Of Nullable(Of Integer)) _
) As Nullable(Of Double)
用法
Dim collection As IEnumerable(Of Nullable(Of Integer))
Dim returnValue As Nullable(Of Double)

returnValue = EntityFunctions.StandardDeviationP(collection)
[DbFunctionAttribute("Edm", "StDevP")]
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public static Nullable<double> StandardDeviationP(
    IEnumerable<Nullable<int>> collection
)
[DbFunctionAttribute(L"Edm", L"StDevP")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1006:DoNotNestGenericTypesInMemberSignatures")]
public:
static Nullable<double> StandardDeviationP(
    IEnumerable<Nullable<int>>^ collection
)
[<DbFunctionAttribute("Edm", "StDevP")>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")>]
static member StandardDeviationP : 
        collection:IEnumerable<Nullable<int>> -> Nullable<float> 
public static function StandardDeviationP(
    collection : IEnumerable<Nullable<int>>
) : Nullable<double>

参数

返回值

类型:System.Nullable<Double>
总体的标准差。

备注

无法直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。 此函数将被转换为数据库中对应的函数。

请参阅

参考

EntityFunctions 类

StandardDeviationP 重载

System.Data.Entity.Core.Objects 命名空间