A
a
Hey gang, quick question. Given an app where many classes will be acessing
a database, what is the best way to go?
a. A function that returns a connection string to each class, and lets them
do their own data access.
b. A function that returns an open SqlConnection.
c. A function that returns a SqlDataReader, after passing it a sproc and
parameters.
d. Something else.
Thanks!
a database, what is the best way to go?
a. A function that returns a connection string to each class, and lets them
do their own data access.
b. A function that returns an open SqlConnection.
c. A function that returns a SqlDataReader, after passing it a sproc and
parameters.
d. Something else.
Thanks!