Strings also should be allowed to respect allownull
This commit is contained in:
@@ -13969,7 +13969,7 @@ namespace DynamORM
|
||||
|
||||
Column = attr;
|
||||
|
||||
if (attr != null && attr.AllowNull && !Type.IsNullableType())
|
||||
if (attr != null && attr.AllowNull && !Type.IsNullableType() && Type != typeof(string))
|
||||
attr.AllowNull = false;
|
||||
|
||||
if (property.CanRead)
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace DynamORM.Mapper
|
||||
|
||||
Column = attr;
|
||||
|
||||
if (attr != null && attr.AllowNull && !Type.IsNullableType())
|
||||
if (attr != null && attr.AllowNull && !Type.IsNullableType() && Type != typeof(string))
|
||||
attr.AllowNull = false;
|
||||
|
||||
if (property.CanRead)
|
||||
|
||||
Reference in New Issue
Block a user