Nullable ignored on AllowNull test
This commit is contained in:
@@ -44,6 +44,7 @@ using System.Collections.Concurrent;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Specialized;
|
using System.Collections.Specialized;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
|
using System.ComponentModel;
|
||||||
using System.Data.Common;
|
using System.Data.Common;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Dynamic;
|
using System.Dynamic;
|
||||||
@@ -13968,7 +13969,7 @@ namespace DynamORM
|
|||||||
|
|
||||||
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)
|
||||||
@@ -15111,3 +15112,4 @@ namespace DynamORM
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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