can someone give me a example of programming to a interface for a database connection?

cbrune
cbrune used Ask the Experts™
on
can someone give me a example of programming to a interface for a database connection?  The reason is bc i want to create unit tests for connecting and returning rows of data without having a database connection
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011
Commented:
an example solution on how to do unit test linq2sql applications . You can download it at:
http://iridescence.no/post/DataContext-Repository-Pattern-Example-Code.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial