Switch Owned value types to ComplexProperty which is better fit.

This requires fluent configuration. Also made some conversion registration context wide.
This commit is contained in:
eelke 2026-02-28 08:18:30 +01:00
parent 07393f57fc
commit 1a8c63808a
11 changed files with 93 additions and 54 deletions

View file

@ -0,0 +1,12 @@
using IdentityShroud.Core.Security;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace IdentityShroud.Core;
public class DekIdConverter : ValueConverter<DekId, Guid>
{
public DekIdConverter()
: base(id => id.Id, guid => new DekId(guid))
{
}
}

View file

@ -0,0 +1,12 @@
using IdentityShroud.Core.Security;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace IdentityShroud.Core;
public class KekIdConverter : ValueConverter<KekId, Guid>
{
public KekIdConverter()
: base(id => id.Id, guid => new KekId(guid))
{
}
}