When combining entity type constructors with lazy-loading proxies (enabled via a call to UseLazyLoadingProxies(true)), model constructors must be at a minimum protected, or exceptions will be thrown.
Suggest changing this line:
The constructor can be public, private, or have any other accessibility.
to:
The constructor can be public, private, or have any other accessibility. However when using Lazy Loading Proxies the constructor must be, at minimum, protected.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: ecc7aedf-6301-7ec7-4f65-81749b1f54c8
Version Independent ID: d0774ffa-c841-e6df-72de-d7f53c0d6f6f
When combining entity type constructors with lazy-loading proxies (enabled via a call to
UseLazyLoadingProxies(true)
), model constructors must be at a minimumprotected
, or exceptions will be thrown.Suggest changing this line:
to:
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.