Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to enable LazyLoading in Core?

$
0
0

Hi,

Is LazyLoading not built-in/supported in Core and how to enable it? Although the service code below works fine, I have to do the "includes" on every services which kinda cumbersome.

        public IEnumerable<Customers> GetAllCustomers()
        {
            return _customers.Get(x => x.IsActive, "Products, Virtual-Property-1, Virtual-Property-2, Virtual-Property-3, Virutal-Property-ETC");
        }

Thanks,


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>