IdentityShroud/IdentityShroud.Core/EFCore/Converters/KekIdConverter.cs
eelke 1a8c63808a Switch Owned value types to ComplexProperty which is better fit.
This requires fluent configuration. Also made some conversion registration context wide.
2026-02-28 08:18:30 +01:00

12 lines
No EOL
284 B
C#

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))
{
}
}