New answers tagged

2

The code pattern var x = new List<X>() followed by a foreach adding to that list is always a telltale that LINQ will probably make things easier and more comprehensible. Your code is not exception to that rule. I'll show you how this can be done quite concisely using LINQ and then explain a few things: var groupedSubscriptions = subscriptions.GroupBy(...


6

Database design vs Object Oriented Class Design The code has a look and feel of "database think" not Object Oriented think. Often the database schema naturally overlaps the code classes but that should never be an explicit class design criteria. This code is not object oriented in the least. Reasons why: all classes have no methods - just like ...


Top 50 recent answers are included