new
This commit is contained in:
@@ -159,13 +159,13 @@ Public Class cVorauskasse
|
||||
cmd.Parameters.AddWithValue("@vk_Rolle", vk_Rolle)
|
||||
Dim dr = cmd.ExecuteReader()
|
||||
If dr.Read Then
|
||||
For Each l In VK.getParameterList()
|
||||
Dim propInfo As PropertyInfo = VK.GetType.GetProperty(l.Scalarvariable)
|
||||
For Each li In VK.getParameterList()
|
||||
Dim propInfo As PropertyInfo = VK.GetType.GetProperty(li.Scalarvariable)
|
||||
|
||||
If dr.Item(l.Text) Is DBNull.Value Then
|
||||
If dr.Item(li.Text) Is DBNull.Value Then
|
||||
propInfo.SetValue(VK, Nothing)
|
||||
Else
|
||||
propInfo.SetValue(VK, dr.Item(l.Text))
|
||||
propInfo.SetValue(VK, dr.Item(li.Text))
|
||||
End If
|
||||
Next
|
||||
dr.Close()
|
||||
@@ -232,13 +232,13 @@ Public Class cVorauskasse
|
||||
cmd.Parameters.AddWithValue("@vk_id", vk_id)
|
||||
Dim dr = cmd.ExecuteReader()
|
||||
If dr.Read Then
|
||||
For Each l In getParameterList()
|
||||
Dim propInfo As PropertyInfo = Me.GetType.GetProperty(l.Scalarvariable)
|
||||
For Each li In getParameterList()
|
||||
Dim propInfo As PropertyInfo = Me.GetType.GetProperty(li.Scalarvariable)
|
||||
|
||||
If dr.Item(l.Text) Is DBNull.Value Then
|
||||
If dr.Item(li.Text) Is DBNull.Value Then
|
||||
propInfo.SetValue(Me, Nothing)
|
||||
Else
|
||||
propInfo.SetValue(Me, dr.Item(l.Text))
|
||||
propInfo.SetValue(Me, dr.Item(li.Text))
|
||||
End If
|
||||
|
||||
Next
|
||||
|
||||
Reference in New Issue
Block a user