design patterns for creation of abstract

design patterns for creation of abstract

Page 1 of 1

2 Replies - 607 Views - Last Post: 29 December 2009 - 10:32 AM Rate Topic: -----

#1 patnalaramesh2009  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 29-December 09

design patterns for creation of abstract

Post icon  Posted 29 December 2009 - 08:53 AM

i have 3 different types of database connections

i want to implement this scenario with abstract (or) abstract factory method

could you please tell me , how we can implement in c#
Is This A Good Question/Topic? 0
  • +

Replies To: design patterns for creation of abstract

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6036
  • View blog
  • Posts: 23,429
  • Joined: 23-August 08

Re: design patterns for creation of abstract

Posted 29 December 2009 - 09:15 AM

http://www.dofactory...rnAbstract.aspx
Was This Post Helpful? 0
  • +
  • -

#3 MentalFloss  Icon User is offline

  • "ADDICTED"[2:5]
  • member icon

Reputation: 526
  • View blog
  • Posts: 1,397
  • Joined: 02-September 09

Re: design patterns for creation of abstract

Posted 29 December 2009 - 10:32 AM

With the requirements you posted, I think a better thing to do is use the DBProviderFactory. Otherwise, you're just going to reinvent the wheel. This has already been done - and well, I might add.

http://davidhayden.c...04/04/2900.aspx
http://social.msdn.m...n...actory&ac=3

Furthermore, you may want to look into some OR/M technology (NHibernate / LINQ).

https://www.hibernate.org/343.html

Hope this helps.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1