From 10787726b9302ef29cd6003ca5147d8293aab59c Mon Sep 17 00:00:00 2001 From: vivet Date: Mon, 11 Nov 2024 18:53:33 +0100 Subject: [PATCH] Fixed issue with IsSimpleType() --- Nano.Models/Extensions/TypeExtensions.cs | 6 ++++++ NanoCore.nuspec | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Nano.Models/Extensions/TypeExtensions.cs b/Nano.Models/Extensions/TypeExtensions.cs index 3659165..c753015 100644 --- a/Nano.Models/Extensions/TypeExtensions.cs +++ b/Nano.Models/Extensions/TypeExtensions.cs @@ -67,11 +67,17 @@ public static bool IsSimple(this Type type) || type.IsEnum || type == typeof(string) || type == typeof(Guid) + || type == typeof(Guid?) || type == typeof(TimeSpan) + || type == typeof(TimeSpan?) || type == typeof(TimeOnly) + || type == typeof(TimeOnly?) || type == typeof(DateOnly) + || type == typeof(DateOnly?) || type == typeof(DateTime) + || type == typeof(DateTime?) || type == typeof(DateTimeOffset) + || type == typeof(DateTimeOffset?) || type == typeof(Nullable<>); } diff --git a/NanoCore.nuspec b/NanoCore.nuspec index f08309f..e3af82c 100644 --- a/NanoCore.nuspec +++ b/NanoCore.nuspec @@ -2,7 +2,7 @@ NanoCore - 8.3.1 + 8.3.2 Nano Core Rapidly built and deploy rich .NET 8.0 applications. Configuration, Security, Logging, Data, Hosting, Docs, Localization, Versioning, Api, Error-Handling, and much more. The project is inspired by years of tedious repetitions, continuously re-writing similar code-snippets and libraries, to handle common functionality, not related to the business domain, such as logging, data persistence, message queuing, documentation, validation and similar. @@ -16,9 +16,7 @@ https://github.com/Nano-Core - - Removed GuidNotEmptyAttribute. - - Added GuidNotEmpty convention to Required annotation. - - Fixed exception when updating directly in db using a query and properties to set. + - Fixed issue with IsSimpleType().