Lazy Loading in Entity Framework Core

Here’s all you need to do to enable lazy loading of navigation properties in Entity Framework Core – doing this allows you to call one of the navigation properties after the original query, and EF will figure out what SQL it needs to run to pull that data. If you know you’re going to need […]

Left Join in Entity Framework

If you need a left join in Entity Framework, you have a couple options. First, if you’re using a real foreign key that just happens to be nullable, then you can use the regular navigation properties. But if you’re doing a left join manually, or with other factors, then you need to do things just […]

Left Join in Entity Framework

If you need a left join in Entity Framework, you have a couple options. First, if you’re using a real foreign key that just happens to be nullable, then you can use the regular navigation properties. But if you’re doing a left join manually, or with other factors, then you need to do things just […]