My boss asked me for a way to enable developers to create applications against our database, without ever having to know the user name or password for the database.

So I came up with the idea to create a single dll, with one class that create a connection object, and return this connection to any calling application.

My idea was that the user (developer) can get a valid connection, without having to worry about the location, user id, or password of the database.

Stupid me...forgot the connection got a ConnectionString Property.

So a developer can just say
sqlconnection mycon = aaconn.createconnection();
string x = mycon.connectionstring;


any better ideas or a way to hide a connectionstring property?