Skip to content

Commit 16366ae

Browse files
Added ValueConverts
1 parent 1bf5d05 commit 16366ae

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
66
<IsPackable>true</IsPackable>
7-
<Version>2.1.14</Version>
7+
<Version>2.1.15</Version>
88
<Authors>Andrey Serdyuk</Authors>
99
<Company>TaskHub</Company>
1010
<PackageTags>#TaskHub</PackageTags>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
2+
using TaskHub.Shared.Primitives.ValueObjects;
3+
4+
namespace TaskHub.Shared.Infrastructure.EfCore.Converters;
5+
6+
public class ValueConverters
7+
{
8+
public static readonly ValueConverter<UserId, Guid> UserId = new(id => id.Value, i => new(i));
9+
}

0 commit comments

Comments
 (0)