Read ConnectionString from ClassConfig instead of My.Settings
This commit is contained in:
parent
841a752a79
commit
0f56454570
@ -91,12 +91,12 @@ Module Module1
|
||||
'Settings_Load()
|
||||
End Sub
|
||||
Public Function InitDatabase() As Boolean
|
||||
If My.Settings.MyECM_ConnectionString = String.Empty Then
|
||||
If CONFIG.Config.ConnectionString.Length = 0 Then
|
||||
Return False
|
||||
End If
|
||||
|
||||
Try
|
||||
_database = New MSSQLServer(LOGCONFIG, My.Settings.MyECM_ConnectionString)
|
||||
_database = New MSSQLServer(LOGCONFIG, CONFIG.Config.ConnectionString)
|
||||
If _database.DBInitialized = True Then
|
||||
Return True
|
||||
Else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user