Domain-Driven Design #06: aggregate and aggregate root
Architektura 1697 dni, 1 godzinę, 50 minut temu 113 źrodło rozwiń
Czy komórki, serwisy i systemy, mają coś wspólnego z komórkami, organizmami i grupami społecznymi? Sprawdźmy to.
Architektura 1924 dni, 23 godziny, 30 minut temu 45 źrodło rozwiń
Aggregate is one of the most fun and powerful methods in LINQ. Sadly it's also of of the most underused and "scary" ones. I hope that after reading this post you will understand Aggregate a bit more, know when to use it and won't be afraid of doing so.
Sztuka programowania 2654 dni, 21 godzin, 53 minuty temu 259 źrodło rozwiń
Napisany przez paweltymura on Jak agregować tekst do String Buildera? Zazwyczaj robi się to tego typu kodem: public string GetPagedHtml() { StringBuilder sb = new StringBuilder(); foreach (var page in Pages) page.CollectHtml(sb, page.Index==0); return sb.ToString(); } Ale przecież można łatwiej, lepiej i przyjemniej... z Linq.Aggregate.
Sztuka programowania 2982 dni, 17 minut temu 247 źrodło rozwiń