0

Regarding use of LinqKit.Microsoft.EntityFrameworkCore v1.1.16

I read that this should be as simple as query.ToString(); But this does not seem to work in .Net core 2.2. You just get a reflection string like ;

"Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions+IncludableQueryable`2[Entities.Models.Contact,Entities.Models.Email]"

            Microsoft.EntityFrameworkCore.Query.IIncludableQueryable<Contact,Entities.Models.Email> query = Context.Contact
          .AsExpandable()
          .Include(c => c.BusinessContact).ThenInclude(b => b.BusinessContactType)
          .Include(c => c.ContactAddress).ThenInclude(ca => ca.Address)
          .Include(c => c.ContactTelephone).ThenInclude(ct => ct.Telephone)
          .Include(c => c.ContactEmail).ThenInclude(ce => ce.Email);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.