Update deps, deprecate Language

This commit is contained in:
Jonathan Jenne
2023-10-13 09:44:59 +02:00
parent 5df933c5f5
commit 76ab452b3f
12 changed files with 38 additions and 44 deletions

View File

@@ -405,8 +405,8 @@ Public Class ProfileFilter
Dim oCountConnectionId = String.Empty
Try
oCountCommand = NotNull(oRow.Item("COUNT_COMMAND"), String.Empty)
oCountConnectionId = NotNull(oRow.Item("CONN_ID"), 0)
oCountCommand = oRow.ItemEx("COUNT_COMMAND", String.Empty)
oCountConnectionId = oRow.ItemEx("CONN_ID", 0)
If oCountCommand = String.Empty Then
Logger.Debug("Data SQL Query is empty. Skipping.")
@@ -421,7 +421,7 @@ Public Class ProfileFilter
Logger.Debug("Count-Command DATA before execute: [{0}]", oCountCommand)
Dim oConnectionString = ProfileUtils.GetConnectionString(Database, oCountConnectionId)
oResultData += NotNull(Of Integer)(Database.GetScalarValueWithConnection(oCountCommand, oConnectionString), 0)
oResultData += ObjectEx.NotNull(Of Integer)(Database.GetScalarValueWithConnection(oCountCommand, oConnectionString), 0)
Logger.Debug("Datarows returned from search: [{0}]", oResultData)
Catch ex As Exception
@@ -436,8 +436,8 @@ Public Class ProfileFilter
Dim oCountConnectionId = String.Empty
Try
oCountCommand = NotNull(oRow.Item("COUNT_COMMAND"), String.Empty)
oCountConnectionId = NotNull(oRow.Item("CONN_ID"), 0)
oCountCommand = oRow.ItemEx("COUNT_COMMAND", String.Empty)
oCountConnectionId = oRow.ItemEx("CONN_ID", 0)
If oCountCommand = String.Empty Then
Logger.Debug("Document SQL Query is empty. Skipping.")
@@ -452,7 +452,7 @@ Public Class ProfileFilter
Logger.Debug("Count-Command for Documents BEFORE execute: [{0}]", oCountCommand)
Dim oConnectionString = ProfileUtils.GetConnectionString(Database, oCountConnectionId)
oResultDocs += NotNull(Of Integer)(Database.GetScalarValueWithConnection(oCountCommand, oConnectionString), 0)
oResultDocs += ObjectEx.NotNull(Of Integer)(Database.GetScalarValueWithConnection(oCountCommand, oConnectionString), 0)
Logger.Debug("Documents returned from search: [{0}]", oResultDocs)
Catch ex As Exception
@@ -577,9 +577,9 @@ Public Class ProfileFilter
oList.Add(New ProfileData() With {
.Guid = oRow.Item("GUID"),
.Regex = oRow.Item("REGEX_EXPRESSION"),
.Name = NotNull(oRow.Item("NAME"), String.Empty),
.Comment = NotNull(oRow.Item("COMMENT"), String.Empty),
.ProfileType = NotNull(oRow.Item("PROFILE_TYPE"), String.Empty),
.Name = oRow.ItemEx("NAME", String.Empty),
.Comment = oRow.ItemEx("COMMENT", String.Empty),
.ProfileType = oRow.ItemEx("PROFILE_TYPE", String.Empty),
.Processes = oProcessList,
.Windows = oWindowList,
.Controls = oControlList
@@ -605,9 +605,9 @@ Public Class ProfileFilter
If oRow.Item("PROFILE_ID") = ProfileId Then
oControlList.Add(New ControlData() With {
.Guid = oRow.Item("GUID"),
.ProcessName = NotNull(oRow.Item("PROCESS_NAME"), String.Empty),
.ControlName = NotNull(oRow.Item("CONTROL_NAME"), String.Empty),
.Description = NotNull(oRow.Item("DESCRIPTION"), String.Empty),
.ProcessName = oRow.ItemEx("PROCESS_NAME", String.Empty),
.ControlName = oRow.ItemEx("CONTROL_NAME", String.Empty),
.Description = oRow.ItemEx("DESCRIPTION", String.Empty),
.WindowId = oRow.Item("WINDOW_ID"),
.TopLeft = New ControlBounds() With {
.Left = oRow.Item("TOPLEFT_LEFT"),
@@ -652,7 +652,7 @@ Public Class ProfileFilter
oProcessList.Add(New ProcessData() With {
.Guid = oRow.Item("GUID"),
.PROFILE_ID = oRow.Item("PROFILE_ID"),
.ProcessName = NotNull(oRow.Item("PROC_NAME"), String.Empty)
.ProcessName = oRow.ItemEx("PROC_NAME", String.Empty)
})
End If
Next
@@ -676,9 +676,9 @@ Public Class ProfileFilter
oWindowList.Add(New WindowData() With {
.Guid = oRow.Item("GUID"),
.WindowProcessID = oRow.Item("PROCESS_ID"),
.Title = NotNull(oRow.Item("DESCRIPTION"), String.Empty),
.Regex = NotNull(oRow.Item("REGEX"), String.Empty),
.Sequence = NotNull(oRow.Item("SEQUENCE"), 0)
.Title = oRow.ItemEx("DESCRIPTION", String.Empty),
.Regex = oRow.ItemEx("REGEX", String.Empty),
.Sequence = oRow.ItemEx("SEQUENCE", 0)
})
End If
Next