Design patterns
Design pattern are the standards and best practices used to accomplish a particular goal, well there are various design patterns, they are Abstract factory pattern, Builder pattern, and Factory pattern.
Abstract factory pattern : Its a pattern where you create the interface and the interface expose the properties , methods , events and classess..
Like I have a EmployeeFactoryInterface which returns IEmployeeManager
public interface IEmployeeFactory
{
IEmployeeManager Create();
}
public interface IEmployeeManager()
{
Dataset getAllEmployee();
}
public EmployeeFactory : IEmployeeFactory
{
public IEmployeeManager Create()
{
return Employee();
}
}
public class Employee : IEmployeeManager
{
public Dataset getAllEmployee()
{
//create connection
//execute stored procedure
//return dataset containing the employee details
}
}
i will post the figure in my next post
Posted: August 7th, 2008 under BizTalk.
Tags: design patterns
Comments
Pingback from Recent Links Tagged With “designpatterns” - JabberTags
Time November 2, 2008 at 2:34 pm
[...] public links >> designpatterns Design patterns Saved by esmeepeters on Sat 01-11-2008 SmartBar to AwesomeBar | edilee Saved by thousandmiles on [...]
Comment from Yaro Stark
Time August 9, 2008 at 11:53 am
Soory couldnt find the contact form so i decided to leave a comment. You have a nice blog and it has a great potential to make you $5000/mo, check out this link for some great free videos and blueprint to help you improve your blog - http://timpedia.com/blog/blogging-for-5000-dollars-a-month/