3 Commits d49c825ab1 ... b9bfe16d5f

Author SHA1 Message Date
  Piotr Czajkowski b9bfe16d5f Information about new version 3 weeks ago
  Piotr Czajkowski 75eb508959 Cleanup 3 weeks ago
  Piotr Czajkowski 0eade4cd86 Cosmetics 3 weeks ago

+ 1 - 1
ExcelORM/ExcelORM/ExcelORM.csproj

@@ -14,7 +14,7 @@
 	<Authors>Piotr Czajkowski</Authors>
 	<Description>Simple library to read/write C# objects from/to Excel files. </Description>
 	<RepositoryType>GitHub</RepositoryType>
-	<PackageReleaseNotes>Handling more number types.</PackageReleaseNotes>
+	<PackageReleaseNotes>Handling more number types. Properly handling appending to and reading from empty file.</PackageReleaseNotes>
     </PropertyGroup>
 
     <ItemGroup>

+ 1 - 1
ExcelORM/ExcelORM/ExcelWriter.cs

@@ -83,7 +83,7 @@ public class ExcelWriter : IDisposable
         List<Mapping>? mapping = [];
 
         var lastRow = worksheet.LastRowUsed();
-        if (lastRow == null && append) append = false;
+        if (lastRow == null) append = false;
         
         var rowIndex = (append, startFrom: appendFrom) switch
         { 

+ 1 - 1
ExcelORM/ExcelORM/TypeExtensions.cs

@@ -52,7 +52,7 @@ public static class TypeExtensions
         {
             return rawNumber;
         }
-        catch (OverflowException exception)
+        catch (OverflowException)
         {
             if (Nullable.GetUnderlyingType(property.PropertyType) != null) return null;
             throw;

+ 2 - 0
README.md

@@ -15,6 +15,8 @@ It currently supports properties of types as supported by ClosedXML, so:
 - DateTime
 - TimeSpan
 
+From version 2.8.0 it supports additional numeric types: decimal, float, long, int, short, byte and their nullable variants.
+
 Additionally, it supports:
 - Guid (if not a valid Guid and non-nullable then empty Guid will be returned)
 - enum (if not a valid enum value and non-nullable then default value will be returned)

+ 1 - 0
versions.md

@@ -8,3 +8,4 @@
 | 2.5.0 | Added Location to ArgumentException Message in ExcelReader. It'll show address of affected cell and the worksheet's name.|
 | 2.6.0 | Added support for appending starting from given row.|
 | 2.7.0 | Added support for reading properties of type Guid and enum.|
+| 2.8.0 | Handling more number types. Properly handling appending to and reading from empty file.