general clean up, add file contents to getdocumentbyx methods

This commit is contained in:
Jonathan Jenne
2019-04-10 16:15:00 +02:00
parent dee5d33bb9
commit 696a8ddbf6
12 changed files with 196 additions and 44 deletions

View File

@@ -47,7 +47,7 @@ Imports DigitalData.Modules.Logging
''' </summary>
Public Class Firebird
Private _Logger As Logger
Private _MyLogger As LogConfig
Private _LogConfig As LogConfig
Private _connectionServer As String
Private _connectionDatabase As String
Private _connectionUsername As String
@@ -79,15 +79,16 @@ Public Class Firebird
''' <summary>
'''
''' </summary>
''' <param name="Datasource"></param>
''' <param name="Database"></param>
''' <param name="User"></param>
''' <param name="Password"></param>
''' <param name="LogConfig">The LogFactory containing the current log config. Used to instanciate the class logger for this and any dependent class</param>
''' <param name="Datasource">The server where the database lives, for example 127.0.0.1 or dd-vmx09-vm03</param>
''' <param name="Database">The location of the Database in the format `127.0.0.1:E:\Path\To\Database.FDB`</param>
''' <param name="User">The user name to connect as</param>
''' <param name="Password">The user's password</param>
''' <exception cref="Exceptions.DatabaseException"></exception>
Public Sub New(LogConfig As LogConfig, Datasource As String, Database As String, User As String, Password As String)
Try
_MyLogger = LogConfig
_Logger = _MyLogger.GetLogger()
_LogConfig = LogConfig
_Logger = _LogConfig.GetLogger()
Dim oConnectionString = GetConnectionString(Datasource, Database, User, Password)
_connectionServer = Datasource