Nullable ignored on AllowNull test
This commit is contained in:
1 parent
6de41e166e
commit
3921c176ce
2 files changed
+1408
-1406
No files matched your search
+1407
-1405
File diff suppressed because it is too large.
Load diff
@@ -111,7 +111,7 @@ namespace DynamORM.Mapper
|
|||||||
|
|
||||||
Column = attr;
|
Column = attr;
|
||||||
|
|
||||||
if (attr != null && attr.AllowNull && Type.IsNullableType())
|
if (attr != null && attr.AllowNull && !Type.IsNullableType())
|
||||||
attr.AllowNull = false;
|
attr.AllowNull = false;
|
||||||
|
|
||||||
if (property.CanRead)
|
if (property.CanRead)
|
||||||
|
|||||||
Reference in new issue
Block a user