LINQ in Action roller

Non-public constructors on domain objects

Using factory methods to create domain objects is often useful. When doing so, private or internal constructors are required. DLinq does not permit this at present (you get an ArgumentNullException from the constructor of SqlNew). Although it could be argued that this pattern can make some Linq projections more awkward, it is a common OO pattern and it seems (to me) unnecessary to prevent its use. It would also help out in situations where you need to seperate code used when creating 'new' new() Read More...
Published Monday, May 22, 2006 4:16 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication