This commit is contained in:
Wolfgang Hottgenroth
2021-12-13 18:01:06 +01:00
parent ee422bd33f
commit 9163b1848c
3 changed files with 17 additions and 10 deletions

View File

@ -139,6 +139,11 @@ namespace com.krohne.genericdatabaseapiservice.Services {
var value = reader.GetDateTime(ordinal);
propertyInfo.SetValue(item, value);
Logger.LogInformation("Output Value:{0}", value);
} else if (propertyInfo.PropertyType == typeof(System.Boolean) ||
propertyInfo.PropertyType == typeof(System.Nullable<System.Boolean>)) {
var value = reader.GetBoolean(ordinal);
propertyInfo.SetValue(item, value);
Logger.LogInformation("Output Value:{0}", value);
} else {
throw new UnsupportedDataTypeException();
}