dino2dy
dino2dy
CC#
Created by dino2dy on 10/12/2023 in #help
❔ Access 2 properties from validationRule
Yes it is in my C# code why would it be in my table?
7 replies
CC#
Created by dino2dy on 10/12/2023 in #help
❔ Access 2 properties from validationRule
Its not an actual ID its a think like a social security nr for in my country just simpler to write ID
7 replies
CC#
Created by dino2dy on 12/16/2022 in #help
❔ Linq group by with multiple columns for the outer and then 1 other column for the inner group
My latest attempt
var consolidatedChildren =
from c in bla
group c by new
{

c.sreSif,
c.sreSerija,
} into gcs
from g in gcs
group g by new
{
g.sreIsplatio
} into gcse
select new
{
srecka= gcs.Key.sreSif,
serija = gcs.Key.sreSerija,
opBroj = gcse.Key.sreIsplatio,
sreckeTemp = gcse.ToList(),
};

foreach (var c in consolidatedChildren)
{
foreach (var isp in c.sreckeTemp)
{

List<string>IsplatniBrojevi= new List<string>();
IsplatniBrojevi.Add(isp.sreIspBroj);
}
}
var consolidatedChildren =
from c in bla
group c by new
{

c.sreSif,
c.sreSerija,
} into gcs
from g in gcs
group g by new
{
g.sreIsplatio
} into gcse
select new
{
srecka= gcs.Key.sreSif,
serija = gcs.Key.sreSerija,
opBroj = gcse.Key.sreIsplatio,
sreckeTemp = gcse.ToList(),
};

foreach (var c in consolidatedChildren)
{
foreach (var isp in c.sreckeTemp)
{

List<string>IsplatniBrojevi= new List<string>();
IsplatniBrojevi.Add(isp.sreIspBroj);
}
}
But I don't see gcs so those lines are showing me errors
select new
{
srecka= gcs.Key.sreSif,
serija = gcs.Key.sreSerija,
select new
{
srecka= gcs.Key.sreSif,
serija = gcs.Key.sreSerija,
3 replies