fixes
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user