This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using Kreta.BusinessLogic.Classes;
namespace Kreta.BusinessLogic.HelperClasses
{
public class TanuloTantargyiAtlagCo
{
public int TanuloId { get; set; }
public string TanuloNev { get; set; }
public string TanuloOktatasiAzonosito { get; set; }
public string TanuloSzuletesiHely { get; set; }
public DateTime TanuloSzuletesiIdo { get; set; }
public string TanuloAnyjaNeve { get; set; }
public int TantargyId { get; set; }
public string TantargyNev { get; set; }
public string OsztalyCsoportNev { get; set; }
public List<(int Osztalyzat, int? Suly)> TanuloErtekelesOsztalyzatList { get; set; }
public double Atlag => TanuloErtekelesOsztalyzatList.Count > 0 ? TanuloErtekelesOsztalyzatList.WeightedAverage(x => x.Osztalyzat, x => x.Suly ?? 100, 2) ?? 0.00 : 0.00;
}
}