B
Brett Romero
I'd like a variable to be created once and called statically from
anywhere in the app. Is the following sufficient or will multiple
instances still be created:
private static SqlConnection Conn = new SqlConnection();
Is it necessary to create the above as a private field, use a property
and check for null on the field...then new it up and return the
connection?
Thanks,
brett
anywhere in the app. Is the following sufficient or will multiple
instances still be created:
private static SqlConnection Conn = new SqlConnection();
Is it necessary to create the above as a private field, use a property
and check for null on the field...then new it up and return the
connection?
Thanks,
brett