From 829b8dcc46dc80dd3d828ff6e89e1c3ae47a709f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 12 Feb 2021 17:37:38 +0100 Subject: [PATCH] Crucial serialization fix. --- backend/src/Squidex.Infrastructure/NamedId{T}.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/Squidex.Infrastructure/NamedId{T}.cs b/backend/src/Squidex.Infrastructure/NamedId{T}.cs index 4dae47778..64a8b9886 100644 --- a/backend/src/Squidex.Infrastructure/NamedId{T}.cs +++ b/backend/src/Squidex.Infrastructure/NamedId{T}.cs @@ -6,12 +6,14 @@ // ========================================================================== using System; +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; namespace Squidex.Infrastructure { public delegate bool Parser(ReadOnlySpan input, out T result); + [TypeConverter(typeof(NamedIdTypeConverter))] public sealed record NamedId where T : notnull { private static readonly int GuidLength = Guid.Empty.ToString().Length;