The database user id and password can be removed from the XML file as long as you handle the PersistenceBroker.LogOnDetailsNeeded event.
Alternatively (if you wish to hide the schema as well) you can rename the file to have a .config file extension (which IIRC is an extension that is never served by IIS to clients - but I could be wrong). You will need to supply the correct file name to the PersistenceBroker.Init() method to do this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Protected WithEvents persistenceBroker As AToMSFramework.CPersistenceBroker
Protected Sub persistenceBroker_LoginDetailsNeeded(ByVal sender As Object, ByRef User As String, ByRef Password As String) Handles persistenceBroker.LoginDetailsNeeded
User = "userid"
Password = "password"
End Sub
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
LoginDetailsNeeded not triggered in case of broker.Init(<xmfile>) use.
In this case the framework search for a default "AtomsFramework.xml" file, and raise an exception :
Could not open the XML Mapping file at ..........\bin\AtomsFramework.XML
just as if it looks first for a default file to complete missing details.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to use this framework in a web-based project. and just realize that the xml file may be opened by others ...
The database user id and password can be removed from the XML file as long as you handle the PersistenceBroker.LogOnDetailsNeeded event.
Alternatively (if you wish to hide the schema as well) you can rename the file to have a .config file extension (which IIRC is an extension that is never served by IIS to clients - but I could be wrong). You will need to supply the correct file name to the PersistenceBroker.Init() method to do this.
Protected WithEvents persistenceBroker As AToMSFramework.CPersistenceBroker
Protected Sub persistenceBroker_LoginDetailsNeeded(ByVal sender As Object, ByRef User As String, ByRef Password As String) Handles persistenceBroker.LoginDetailsNeeded
User = "userid"
Password = "password"
End Sub
LoginDetailsNeeded not triggered in case of broker.Init(<xmfile>) use.
In this case the framework search for a default "AtomsFramework.xml" file, and raise an exception :
Could not open the XML Mapping file at ..........\bin\AtomsFramework.XML
just as if it looks first for a default file to complete missing details.