new
This commit is contained in:
@@ -88,13 +88,13 @@ Public Class cBonitaetsauskunft
|
||||
cmd.Parameters.AddWithValue("@ba_Datum", ba_Datum.ToShortDateString)
|
||||
Dim dr = cmd.ExecuteReader()
|
||||
If dr.Read Then
|
||||
For Each l In BONI.getParameterList()
|
||||
Dim propInfo As PropertyInfo = BONI.GetType.GetProperty(l.Scalarvariable)
|
||||
For Each li In BONI.getParameterList()
|
||||
Dim propInfo As PropertyInfo = BONI.GetType.GetProperty(li.Scalarvariable)
|
||||
|
||||
If dr.Item(l.Text) Is DBNull.Value Then
|
||||
If dr.Item(li.Text) Is DBNull.Value Then
|
||||
propInfo.SetValue(BONI, Nothing)
|
||||
Else
|
||||
propInfo.SetValue(BONI, dr.Item(l.Text))
|
||||
propInfo.SetValue(BONI, dr.Item(li.Text))
|
||||
End If
|
||||
|
||||
Next
|
||||
@@ -117,13 +117,13 @@ Public Class cBonitaetsauskunft
|
||||
cmd.Parameters.AddWithValue("@ba_id", ba_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