src/Shared/EntityFramework/DbFunctions.cs
/// <summary>
/// When used as part of a LINQ to Entities query, this method invokes the canonical Var EDM function to calculate
/// the variance of the collection.
/// </summary>
/// <remarks>
/// You cannot call this function directly. This function can only appear within a LINQ to Entities query.
/// This function is translated to a corresponding function in the database.
/// </remarks>
/// <param name="collection"> The collection over which to perform the calculation. </param>
/// <returns> The variance. </returns>
When used as part of a LINQ to Entities query, this method invokes the canonical Var EDM function to calculate
the variance of the collection.
When used as part of a LINQ to Entities query this method invokes the canonical Var EDM function to calculate the variance of the collection .
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
        [DbFunction("Edm", "Var")]
        public static double? Var(IEnumerable<long?> collection)
        {
            return BootstrapFunction(c => Var(c), collection);
        }
[ SuppressMessage ( " " , " " ) ] [ DbFunction ( " " , " " ) ] public static double ? Var ( IEnumerable < long ? > collection ) { return BootstrapFunction ( c => Var ( c ) , collection ) ; }
When used as part of a LINQ to Entities query, this method invokes the canonical Var EDM function to calculate
the variance of the collection.
When used as part of a LINQ to Entities query this method invokes the canonical Var EDM function to calculate the variance of the collection .
None
collection
IEnumerable<long?>
The collection over which to perform the calculation.
The collection over which to perform the calculation .
remarks
You cannot call this function directly. This function can only appear within a LINQ to Entities query.
This function is translated to a corresponding function in the database.
You cannot call this function directly . This function can only appear within a LINQ to Entities query . This function is translated to a corresponding function in the database .