diff --git a/PgBulk.EFCore/EntityColumnInformation.cs b/PgBulk.EFCore/EntityColumnInformation.cs
index 51bc63f..16369b1 100644
--- a/PgBulk.EFCore/EntityColumnInformation.cs
+++ b/PgBulk.EFCore/EntityColumnInformation.cs
@@ -26,7 +26,8 @@ public EntityColumnInformation(string name, bool primaryKey, bool valueGenerated
if (Property == null)
throw new InvalidOperationException("No property is set for this column");
- return Property.PropertyType.IsEnum
+ var truePropertyType = Nullable.GetUnderlyingType(Property.PropertyType) ?? Property.PropertyType;
+ return truePropertyType.IsEnum
? Convert.ToInt32(Property.GetValue(entity))
: Property.GetValue(entity);
}
diff --git a/PgBulk.EFCore/PgBulk.EFCore.csproj b/PgBulk.EFCore/PgBulk.EFCore.csproj
index 3e772a2..88e46f2 100644
--- a/PgBulk.EFCore/PgBulk.EFCore.csproj
+++ b/PgBulk.EFCore/PgBulk.EFCore.csproj
@@ -6,7 +6,7 @@
enable
10
https://github.com/redbaty/PgBulk
- 1.1.13
+ 1.1.14