G
Guest
Hello all,
can someone possibly clear up what the 'proper' way to abstract DB access
is? (Using C#, though it shouldnt matter)
For example my asp page calls a web service that has an authenticate method
that uses a username/pass table in a DB..
I set up a DB class that connects to the DB and has a public OleConnection.
The webservice builds the olecommand and runs it against that public
OleConnection, but that somehow seems wrong. Sticking every possible
olecommand in my db connection class also doesnt make any sense.
So whats the right layout? Im trying to build it so that its easy to
implement connection pooling and caching later if i need to, and so I can
easily port to Oracle/MS SQL.
can someone possibly clear up what the 'proper' way to abstract DB access
is? (Using C#, though it shouldnt matter)
For example my asp page calls a web service that has an authenticate method
that uses a username/pass table in a DB..
I set up a DB class that connects to the DB and has a public OleConnection.
The webservice builds the olecommand and runs it against that public
OleConnection, but that somehow seems wrong. Sticking every possible
olecommand in my db connection class also doesnt make any sense.
So whats the right layout? Im trying to build it so that its easy to
implement connection pooling and caching later if i need to, and so I can
easily port to Oracle/MS SQL.