From 7cdee757650fc2ddc8a002be3271675698d8d193 Mon Sep 17 00:00:00 2001 From: "andrey.efimenko" Date: Mon, 23 May 2022 18:13:11 +0300 Subject: [PATCH] add support for System.Text.Json not including LazyLoader --- 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; } }