I need my context to include the sonns
by a condition, I need the rows that not deleted (logical delete).
I understood that I cannot add a condition to the include; so I want to filter the context, but it's not working.
var aa = ctx.aa
.Include(t => t.vari)
.ToList()
.FirstOrDefault();
ctx.vari.Where(bi => bi.ID == 10 && bi.Deleted == 1).ToList();
Thanks!