EntityFunctions.Var Method (IEnumerable<Nullable<Decimal>>)

.NET Framework (current version)

Invokes the canonical Var function. For information about the canonical Var function, see Canonical Functions.

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

[EdmFunctionAttribute("Edm", "Var")]
public static Nullable<double> Var(
	IEnumerable<Nullable<decimal>> collection


Type: System.Collections.Generic.IEnumerable<Nullable<Decimal>>

The set of values for which the variance will be calculated.

Return Value

Type: System.Nullable<Double>

The statistical variance of all values in the specified collection.

This function is translated to a corresponding function in the database.

.NET Framework
Available since 4.0
Return to top