using System.Diagnostics.CodeAnalysis; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Hydra.Backend.Database; [SuppressMessage("ReSharper", "ClassNeverInstantiated.Global", Justification = "Referenced in HydraContext.ConfigureConventions")] public class UlidConverter() : ValueConverter( convertToProviderExpression: x => x.ToGuid(), convertFromProviderExpression: x => new Ulid(x) );