Skip to content

Commit

Permalink
add support for System.Text.Json not including LazyLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey.efimenko committed May 23, 2022
1 parent ddaf990 commit 7cdee75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/EFCore.Proxies/Proxies/Internal/IProxyLazyLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -20,5 +21,6 @@ public interface IProxyLazyLoader
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
[IgnoreDataMember]
[JsonIgnore]
ILazyLoader? LazyLoader { get; set; }
}

0 comments on commit 7cdee75

Please sign in to comment.