From a47b595e9ac91daa607ea9293e66f6bfbcd21510 Mon Sep 17 00:00:00 2001 From: "andrey.efimenko" Date: Mon, 23 May 2022 18:13:11 +0300 Subject: [PATCH] Summary of the changes - add support for System.Text.Json not including LazyLoader Fixes #28083 --- src/EFCore.Proxies/Proxies/Internal/IProxyLazyLoader.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/EFCore.Proxies/Proxies/Internal/IProxyLazyLoader.cs b/src/EFCore.Proxies/Proxies/Internal/IProxyLazyLoader.cs index 2d41f214533..442d9360b63 100644 --- a/src/EFCore.Proxies/Proxies/Internal/IProxyLazyLoader.cs +++ b/src/EFCore.Proxies/Proxies/Internal/IProxyLazyLoader.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.Serialization; +using System.Text.Json.Serialization; namespace Microsoft.EntityFrameworkCore.Proxies.Internal; @@ -20,5 +21,6 @@ public interface IProxyLazyLoader /// doing so can result in application failures when updating to a new Entity Framework Core release. /// [IgnoreDataMember] + [JsonIgnore] ILazyLoader? LazyLoader { get; set; } }