Skip to content

Commit

Permalink
Fixed issue with IsSimpleType()
Browse files Browse the repository at this point in the history
  • Loading branch information
vivet committed Nov 11, 2024
1 parent df235bd commit 1078772
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Nano.Models/Extensions/TypeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<>);
}

Expand Down
6 changes: 2 additions & 4 deletions NanoCore.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>NanoCore</id>
<version>8.3.1</version>
<version>8.3.2</version>
<title>Nano Core</title>
<summary>Rapidly built and deploy rich .NET 8.0 applications. Configuration, Security, Logging, Data, Hosting, Docs, Localization, Versioning, Api, Error-Handling, and much more.</summary>
<description>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.</description>
Expand All @@ -16,9 +16,7 @@
<projectUrl>https://github.com/Nano-Core</projectUrl>
<repository type="git" url="https://github.com/Nano-Core/Nano.Library.git" />
<releaseNotes>
- 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().
</releaseNotes>
<dependencies>
<group targetFramework="net8.0">
Expand Down

0 comments on commit 1078772

Please sign in to comment.