Linq to Sql CompiledQuery container

Before we go deep into Linq to Sql, I wanted to share with you one of my pictures made last week at Chamonix Mont Blanc from "L’aiguille du midi" during some days off. Ok now let’s go. Here is just a little trick but with some interesting patterns that could be useful in some other…

10

Visual Linq query builder for Linq to Sql: VLinq

Hi all, After almost one year of work and organization, I am very happy to share this project with you: http://code.msdn.microsoft.com/vlinq – new setup fixed (4/17/2008) The Visual Linq query builder is a Visual Studio 2008 addin. It’s a designer that helps you create Linq to Sql queries in your application. Both C# and VB projects…

81

How to implement a many-to-many relationship using Linq to Sql ? Part II : add/remove support

In my previous post (http://blogs.msdn.com/mitsu/archive/2007/06/21/how-to-implement-a-many-to-many-relationship-using-linq-to-sql.aspx), I had proposed a simple solution for implementing many-to-many relationships using Linq to Sql.Actually, this solution is a generic Linq solution. It’s also working with just memory collections (not only Linq to Sql). Many of you asked me for add/remove support. Let’s clarify a few things: The current solution offers…

20

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…

7

How to implement a many-to-many relationship using Linq to Sql ?

In this article, I will show one possible solution to implement many-to-many relationship using Linq to Sql. Let’s begin with some definitions and what Linq to Sql offers. A “many to many” relationship between two entities defines a kind of bi-directional “one to many” relationship for each of the entities. In this very well-known example,…

51