Skip to content

Commit

Permalink
Merge pull request #5 from PandaTechAM/development
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
HaikAsatryan authored Dec 5, 2024
2 parents 23c3d14 + 815c4a0 commit bdc0003
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
11 changes: 3 additions & 8 deletions src/EFCore.Audit/Configurator/PropertyConfigurator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using EFCore.Audit.Models;
using EFCore.Audit.Models;

namespace EFCore.Audit.Configurator;

Expand All @@ -9,7 +9,7 @@ public PropertyConfigurator<TEntity, TProperty> Ignore()
propertyConfig.Ignore = true;
return this;
}

public PropertyConfigurator<TEntity, TProperty> Rename(string newName)
{
propertyConfig.Name = newName;
Expand All @@ -20,12 +20,7 @@ public PropertyConfigurator<TEntity, TProperty> Transform<TOutput>(Func<TPropert
{
propertyConfig.Transform = value =>
{
if (value is TProperty typedValue)
{
return transformFunc(typedValue);
}

throw new InvalidCastException($"Cannot cast property value to type {typeof(TProperty).Name}");
return transformFunc((TProperty)value!);
};

return this;
Expand Down
4 changes: 2 additions & 2 deletions src/EFCore.Audit/EFCore.Audit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
<PackageReadmeFile>Readme.md</PackageReadmeFile>
<Authors>Pandatech</Authors>
<Copyright>MIT</Copyright>
<Version>1.1.3</Version>
<Version>1.1.4</Version>
<PackageId>Pandatech.EFCore.Audit</PackageId>
<Title>Pandatech.EFCore.Audit</Title>
<PackageTags>Pandatech;library;EFCore;Audit;DbContext;ChangeTracker;audit-trail</PackageTags>
<Description>Pandatech.EFCore.Audit is a powerful and configurable library designed to collect audit trail data from the EF Core DbContext change tracker. It is built with scalability and professional-grade extensibility in mind.</Description>
<RepositoryUrl>https://github.com/PandaTechAM/be-lib-efcore-audit</RepositoryUrl>
<PackageReleaseNotes>Doc update</PackageReleaseNotes>
<PackageReleaseNotes>null value bug fix</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions test/EFCore.Audit.Demo/EFCore.Audit.Demo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.0" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.1" />
<PackageReference Include="Pandatech.Crypto" Version="4.1.1" />
<PackageReference Include="Scalar.AspNetCore" Version="1.2.45" />
</ItemGroup>

Expand Down

0 comments on commit bdc0003

Please sign in to comment.