Sten Sundblad and Per Sundblad
MSDN Magazine July 2003
View Complete Post
A design pattern can solve many problems by providing a framework for building an application. Design patterns, which make the design process cleaner and more efficient, are especially well-suited for use in C# development because it is an object-oriented language. Existing design patterns make good templates for your objects, allowing you to build software faster. This article describes several popular design patterns you can use in your own applications, including the singleton, the decorator, the composite, and the state classes, which can improve the extensibility of your applications and the reuse of your objects.
MSDN Magazine July 2001
I'm trying to decide which of the two factory patterns I should use in my Asp.Net applications:1 : All DAL providers derive from same abstract base class DepartmentsProvider, which defines public interface of the class ( all the necessary CRUD methods for which derived classes (providers ) provide a concrete implementation ). BLL layer instantiates correct provider by calling DepartmentsProvider.Instance:
public abstract class DepartmentsProvider
static private DepartmentsProvider _instance = null;
/// Returns an instance of the provider type specified in the config file
static public DepartmentsProvider Instance
if (_instance == null)
_instance = (DepartmentsProvider)Activator.CreateInstance(
public abstract List<Department> GetDepartments ();
/// Concrete provider
public class SqlDepartmentsProvider : DepartmentsProvider
public override List<Department> GetDepartments()
using (SqlConnection cn = new
What is the difference between Architecture and Design patterns ? Can anyone please classify them. ?
I m so confused. Don't think as a stupid question
I need help to make decision for making framework for new project.Project is financing (banking) project. It'll b using .net 3.5 sp1 with sql server 2005.I want to know what should be best approach for framework? Mean to use LINQ or go with Stored procedure way with 3 tier architecture?or anything else?
For current financing project the framework is done by one of MVP. He used LINQ to all things.But we facing problem of w3wp process hang. We cant go for web gardening or farming bcz LINQ objects cnt be serialized to store in Session etc.Difficult to use Transactions in LINQ. Have to use TransactionScope lead to MSDTC problems etc.
Please give your opinion.