Created
August 6, 2023 13:14
-
-
Save nishanc/fb01038ca4b17faa2a61a998c5bb0a94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach (var blog in blogs) | |
{ | |
if (context.Entry(blog).Collection(e => e.Posts).IsLoaded) | |
{ | |
Console.WriteLine($" Posts for blog '{blog.Name}' are loaded."); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment