Sponsored By Aspose - File Format APIs for .NET

Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!

Category Archives: Linq

Architecting Linq to SQL, part 10

 Previously: Architecting Linq to SQL, part 9 End of the line This is intended to be the last part in this series and I wanted to take the opportunity to talk about a number of related if diverse topics. I … Continue reading 

Also posted in Utilities | 15 Comments

Architecting LINQ To SQL part 9

Previously: Architecting LINQ To SQL part 8 LINQ To SQL with N-Tier: Why is there pain? People tend to experience pain using LINQ in N-Tier scenarios because they are trying to pass entities between layers. You can find some examples … Continue reading 

Also posted in Presenting | 6 Comments

Dispelling some urban legends about LINQ to SQL

Scott has a great post where he dispels the following two myths about using LINQ to SQL. LINQ to SQL requires you to start with a database schema. LINQ to SQL requires your classes to implement INotifyPropertyChanged and use EntitySet<T> … Continue reading 

Also posted in Coding Style, Featured, NAnt | 3 Comments

Linq to NHibernate – The Day After

What a difference a day makes. Spent the better part of yesterday trying to figure out the Linq to NHibernate so that I could use Contains on something other than a string, like so: from job in session.Linq( ) where … Continue reading 

Also posted in NHibernate | 5 Comments

Architecting LINQ To SQL Applications, part 8

Previously: Architecting LINQ To SQL Applications, part 7  TiersA layer, such as we discussed Part 2, in is not a tier. A layer is a logical unit of division; a tier is a physical unit of division. The two need not … Continue reading 

Also posted in Career, Featured | 8 Comments

Architecting LINQ To SQL Applications, part 7

Previously: Architecting LINQ To SQL Applications, part 6 The topic of managing entity lifetimes is an important one as many of the issues that people have when using an ORM for the first time relate to a lack of understanding of … Continue reading 

Also posted in ASP.NET MVC, Featured, Presenting | 7 Comments

Architecting LINQ To SQL Applications, part 6

Previous: Architecting LINQ To SQL Applications, part 5 Mapping with XML files instead of Attributes Greg Young pointed out in the comments to the last post that using attributes can clutter your domain objects. Although it is simpler to show attributes … Continue reading 

Also posted in Estimating | 4 Comments

Architecting LINQ To SQL Applications, part 5

Let’s return to the series on how to architect applications that use LINQ To SQL. First of all, for those you who missed it, a summary of where we have been: Part 1, IntroductionPart 2, Layered ArchitecturesPart 3, DAOs and … Continue reading 

Also posted in ASP.NET MVC, Brownfield, Mocking, Presenting, TDD | 8 Comments

Architecting LINQ to SQL applications, part 4

Dynamic Queries One question that arises from time to time is: how do I do dynamic queries in LINQ. The problem usually stems from allowing the users to generate search criteria, perhaps through a filter for a list for example. … Continue reading 

Also posted in Refactoring, Utilities | 111 Comments

Architecting LINQ to SQL applications, part 3

DAOs and Repositories One of the concerns we want to separate our domain from, is how we persist the domain model. The domain should not need to where: file, database, service etc. or how. In the specific context of an … Continue reading 

Also posted in MbUnit, TDD | 19 Comments