update 20211204
This commit is contained in:
@@ -64,7 +64,7 @@ namespace BlazorApp
|
||||
new MenuItem()
|
||||
{ Name = "Firmen", Path = "/Admin/Company/Company", Icon = "account_balance" },
|
||||
new MenuItem()
|
||||
{ Name = "Schüler", Path = "/Admin/Schueler", Icon = "accessibility" },
|
||||
{ Name = "Schüler", Path = "/Admin/Student/Student", Icon = "accessibility" },
|
||||
new MenuItem()
|
||||
{ Name = "Zuteilung", Path = "/Admin/Zuteilung/Zuteilung", Icon = "grade" },
|
||||
new MenuItem()
|
||||
|
||||
@@ -176,7 +176,15 @@ namespace BlazorApp.Helper
|
||||
foreach (PropertyInfo pro in temp.GetProperties())
|
||||
{
|
||||
if (pro.Name == column.ColumnName)
|
||||
pro.SetValue(obj, dr[column.ColumnName], null/* TODO Change to default(_) if this is not a reference type */);
|
||||
try
|
||||
{
|
||||
pro.SetValue(obj, dr[column.ColumnName], null/* TODO Change to default(_) if this is not a reference type */);
|
||||
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
|
||||
else
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user