JaedenRuiner
Well-known member
- Joined
- Aug 13, 2007
- Messages
- 340
- Programming Experience
- 10+
Is it wise to alter any of the dataset autogenerated code, like you create the dataset, and it generates the datatable classes and the tableadapterclasses, but there is generated one SqlConnection() class per table adapter, even when they are managed by a single TableAdapterManager. Is it wise at all to go into the code and add a property or alter it in some way so that you can have say:
Yes, that is crappy pseudo code, but you get the idea. Can I do that at all, or should i never manipulate the "MyDataSet.designer.vb" file.
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner
ps the other reason for this is that option that says when you create an MDF connection string for the dataset, you can decide to
When doing that how/where can you add that programmatically so that the password (and/or userid) is asked for separately and transmitted directly to the database through the connection without being in the connection string?
VB.NET:
class TableAdapterManager
property Connection() as SqlConnection
set
m_connection = value
Table1Adapter.Connection = m_connection
Table2Adapter.Connection = m_connection
end set
end property
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner
ps the other reason for this is that option that says when you create an MDF connection string for the dataset, you can decide to
"No, don't save sensitve data in connection string, i will add that programmatically"
When doing that how/where can you add that programmatically so that the password (and/or userid) is asked for separately and transmitted directly to the database through the connection without being in the connection string?