BO4E.Extensions/BusinessObjects/Energiemenge/EnergiemengeExtension.cs
/// <summary>
///     test if Energiemenge has only one Obiskennzahl
/// </summary>
/// <param name="em">Energiemenge</param>
/// <returns>true iff the Energiemenge-&gt;energieverbrauch list has at most one distinct Obiskennzahl</returns>
test if Energiemenge has only one Obiskennzahl
test if Energiemenge has only one Obiskennzahl
public static bool IsPureObisKennzahl(this BO.Energiemenge em)
        {
            using (MiniProfiler.Current.Step(nameof(IsPureObisKennzahl)))
            {
                return em.Energieverbrauch.Select(v => v.Obiskennzahl).Distinct().Count() <= 1;
            }
        }
public static bool IsPureObisKennzahl ( this BO . Energiemenge em ) { using ( MiniProfiler . Current . Step ( nameof ( IsPureObisKennzahl ) ) ) { return em . Energieverbrauch . Select ( v => v . Obiskennzahl ) . Distinct ( ) . Count ( ) <= 1 ; } }
test if Energiemenge has only one Obiskennzahl
test if Energiemenge has only one Obiskennzahl
true iff the Energiemenge->energieverbrauch list has at most one distinct Obiskennzahl
true iff the Energiemenge - > energieverbrauch list has at most one distinct Obiskennzahl
BO.Energiemenge
this
em
None