13 lines
337 B
C#
13 lines
337 B
C#
|
|
using IdentityShroud.Core.Model;
|
||
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||
|
|
|
||
|
|
namespace IdentityShroud.Core.EFCore;
|
||
|
|
|
||
|
|
public class RealmSigningKeyIdConverter : ValueConverter<RealmSigningKeyId, Guid>
|
||
|
|
{
|
||
|
|
public RealmSigningKeyIdConverter()
|
||
|
|
: base(id => id.Id, guid => new RealmSigningKeyId(guid))
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|