|
|
@ -71,7 +71,9 @@ namespace eu.railduction.netcore.dll.Database_Attribute_System
|
|
|
|
object value = data_keySet.Value;
|
|
|
|
object value = data_keySet.Value;
|
|
|
|
if (!(value is DBNull)) // Check if value is empty
|
|
|
|
if (!(value is DBNull)) // Check if value is empty
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//if (baseAttribute.parentField.FieldType == typeof(Guid)) value = new Guid((string)value); // If its a guid, i need to convert
|
|
|
|
// Convert type if necessary
|
|
|
|
|
|
|
|
if (baseAttribute.parentField.FieldType == typeof(Guid)) value = new Guid((string)value);
|
|
|
|
|
|
|
|
if (baseAttribute.parentField.FieldType == typeof(char)) value = (char)value;
|
|
|
|
|
|
|
|
|
|
|
|
baseAttribute.parentField.SetValue(classObject, value);
|
|
|
|
baseAttribute.parentField.SetValue(classObject, value);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|