WPF ObjectDumper and Linq to Sql deferred loading. Video: WPF Object dumper demo The official C# 3.0 samples are providing a very useful ObjectDumper class that allows displaying any kind of object on the console output.
All the child properties are also displayed and you can even define how deep you want to go through child properties. In this sample, I will show how to achieve quite the same using Windows Presentation Foundation. Actually, I will show two specific technologies: Moq: Linq, Lambdas and Predicates applied to Mock Objects. The Great Linq : LINQ and 3-Tier Dogma. One of the most frequent questions we've received about LINQ to SQL deals with fitting it into the classic three-tiered scenario.
That is: Presentation --- Logic --- Data I know someone somewhere is going to accuse me of heresy for what I'm about to state, but it's something I've wanted to get off my chest for a couple years, since I first encountered LINQ to SQL, and started to realize what it meant... The 3-Tier Model is just a pattern. Understanding the Linq DataContext. In an earlier post I showed how LINQ developers can connect to a database and write a simple query.
This post steps behind the scenes of a LINQ to SQL application and describes the classes auto-generated by the Object Relational Designer (aka LINQ to SQL designer). The focus will be on two key items: The Customer and Order entity class The DataContext itself The Customer and Order Entity Classes In the previous post we dragged the Customers class from the Northwnd database onto the LINQ Object Relational Designer. Playing with Linq grouping: GroupByMany ? Linq is a great technology to manage data directly from your .Net language.
One of its features is grouping. Many people understand grouping like it is defined in Sql. Linq is implementing grouping quite the same way. Improving LINQ Code Smell with Explicit and Implicit Conversion Operators. LINQ Framework Design Guidelines. Writing applications that interact with data sources, such as databases, XML documents, or Web Services such as Flickr or Amazon, is made easier in the .NET Framework 3.5 with the addition of a set of features collectively referred to as LINQ (Language-Integrated Query).
In what follows, we start with a very brief overview of LINQ, followed by guidelines for designing APIs in relation to LINQ. 1. A Brief Overview of LINQ Quite often, programming requires processing over sets of values.