Faking your LINQ Provider part 2: Optimizing performance with fetching strategies

This sequel explains how to write O/RM specific performance optimizations in such a way that the core business logic won’t be affected. This article builds on top of the foundation described in part 1 and uses the Fetching Strategy design pattern to achieve this goal.

read more...

- filed under .NET General, C#, Dependency injection, Entity Framework, LINQ, LINQ to SQL, O/RM, Simple Injector, SQL - No comments / No trackbacks - §

Faking your LINQ provider part 1

I recently tried to figure out how to write testable code while using LINQ to SQL as my O/RM of choice, without loosing the ability to use LINQ to Expression trees! In this post I describe the design I ender up with.

read more...

- filed under .NET General, ADO.NET, C#, Databases, Dependency injection, Entity Framework, LINQ, LINQ to SQL, O/RM - fifteen comments / No trackbacks - §

Adding Enum Support to Entity Framework LINQ queries

Roger Alsing wrote an interesting post yesterday about adding support for enums to LINQ queries. It is nice to see what Roger is doing with the .NET 4.0 ExpressionVisitor to change Expression trees that allow this behavior. What I dislike however, is that for this solution you need to reimplement all Queryable extension methods. So I thought about this and found a more pleasant way of intercepting query calls.

read more...

- filed under .NET General, C#, Databases, Entity Framework, LINQ, LINQ to SQL, O/RM, SQL - one comment / No trackbacks - §

Sorting entities with the EntitySorter

This article describes the EntitySorter<T> class. It's a nifty little thing that allows the presentation layer to instruct the service layer how collections should be returned.

read more...

- filed under .NET General, C#, Entity Framework, LINQ, LINQ to SQL - five comments / No trackbacks - §

Integrating Enterprise Library Validation Application Block With LINQ to SQL and Entity Framework Part 4: Using Metadata to Automate Validations

This article describes how to extract information from your generated LINQ to SQL entities to automate validations like maximum string length and disallowing null values.

read more...

- filed under .NET General, C#, Enterprise Library, Entity Framework, LINQ, LINQ to SQL, O/RM, Validation Application Block - No comments / No trackbacks - §

NDepend

For over three years I've been using NDepend. In this post I'll describe my thoughts on NDepend.

read more...

- filed under .NET General, LINQ - one comment / No trackbacks - §

CuttingEdge.Conditions version 1.0 released

Last week I published the first stable release of CuttingEdge.Conditions.

read more...

- filed under .NET General, C#, CuttingEdge.Conditions, LINQ - No comments / No trackbacks - §

Removing Otherwise method from CuttingEdge.Conditions

In this post I’ll describe another breaking change I’m making to my open source project, CuttingEdge.Conditions.

read more...

- filed under .NET General, C#, CuttingEdge.Conditions, LINQ - No comments / No trackbacks - §

Controversial change in CuttingEdge.Conditions

In this post I’ll describe a controversial change I’m making in my open source project, CuttingEdge.Conditions.

read more...

- filed under .NET General, C#, CuttingEdge.Conditions, LINQ - No comments / No trackbacks - §

Porting a LINQ to SQL to Entity Framework project

The Entity Framework Design blog just published a template that enables converting a LINQ to SQL .dbml file to a Entity Framework .edmx file.

read more...

- filed under ADO.NET, Entity Framework, LINQ, LINQ to SQL - No comments / No trackbacks - §

Integrating Enterprise Library Validation Application Block with LINQ to SQL and Entity Framework Part 2: Using context within custom validators.

This article describes how to write custom validators for the Enterprise Library Validation Application Block, in such a way that it runs within the context of a specific LINQ to SQL DataContext or Entity Framework ObjectContext class, which allows analysis of non-persisted (in-memory) changes in that context.

read more...

- filed under .NET General, C#, Enterprise Library, Entity Framework, LINQ, LINQ to SQL, O/RM, Validation Application Block - two comments / No trackbacks - §

Integrating Enterprise Library Validation Application Block With LINQ to SQL and Entity Framework Part 1: Basic Integration

This article describes how to integrate the Enterprise Library Validation Application Block in conjunction with an O/RM technology such as LINQ to SQL and Entity Framework.

read more...

- filed under .NET General, C#, Enterprise Library, Entity Framework, LINQ, LINQ to SQL, O/RM, Validation Application Block - 17 comments / No trackbacks - §

The death of LINQ to SQL

The Microsoft ADO.NET team blog made an important announcement yesterday about the future of LINQ to SQL.

read more...

- filed under .NET General, ADO.NET, C#, Databases, LINQ, SQL - one comment / No trackbacks - §

Extending CuttingEdge.Conditions

In a previous post I introduced CuttingEdge.Conditions, a library that helps developers to write pre- and postcondition validations in their .NET 3.5 code base. In this post I'll explain how you can extend the library.

read more...

- filed under .NET General, C#, CuttingEdge.Conditions, LINQ - No comments / No trackbacks - §

Introducing CuttingEdge.Conditions

CuttingEdge.Conditions is a library that helps developers to write pre- and postcondition validations in their .NET 3.5 code base. Writing these validations is easy and it improves the readability and maintainability of code.

read more...

- filed under .NET General, C#, CuttingEdge.Conditions, LINQ - seven comments / No trackbacks - §

My Own Fluent Argument Validation Library

The last couple of days I had some spare time. What does a workaholic do with spare time? Exactly: he builds his own library. :-)

read more...

- filed under .NET General, C#, CuttingEdge.Conditions, LINQ, Visual Studio - four comments / No trackbacks - §

Visual studio bug: Generic extension method doesn't show up in IntelliSense

I just reported a bug on the Microsoft Connect site about a quirk in the C# IntelliSense feature regarding generic extension methods.

read more...

- filed under .NET General, C#, LINQ, Visual Studio - two comments / No trackbacks - §

Parallel LINQ (aka PLINQ)

Anders Hejlsberg, lead architect for the C# language at Microsoft, announced early august Microsoft is working on a parallel implementation of LINQ internally known as PLINQ.

read more...

- filed under .NET General, LINQ - No comments / No trackbacks - §

In love with BLINQ

I'm really in love with BLINQ, look at the channel 9 video here.

read more...

- filed under ASP.NET, LINQ - No comments / No trackbacks - §