This commit is contained in:
2021-11-30 18:34:23 +01:00
parent 4a981721de
commit cdee9d929a

View File

@ -63,7 +63,7 @@ namespace de.hottis.genericdatabaseapiservice.Services {
var dma = (DataMemberAttribute)attributes[0];
Console.WriteLine("Output DataMember name: {0} {1} ", dma.Name, dma.TypeId);
if (propertyInfo.PropertyType == typeof(System.String)) {
if (reader.IsDBNull(dma.name)) {
if (reader.IsDBNull(dma.Name)) {
propertyInfo.SetValue(item, null);
Console.WriteLine("Output Value: null");
} else {