Curtis Rutland, on 15 June 2011 - 12:21 PM, said:
Well, if you just want to take some of the concepts away, I'd suggest that instead of embedding the connection information in the object itself, I'd make a DB context object, that contains your connection string and SQL statements, and give it methods. One for selecting, one for inserting. The one for inserting should take a Class1 (or whatever) kind of object.
Curtis you suggested to the op to create a DB context object.
Is this the same as a context object in the Strategy Design Pattern?

New Topic/Question
Reply





MultiQuote





|