dotvvm
dotvvm copied to clipboard
LoadFromQueryableAsync support for Marten
Suggested by @tomasherceg in https://github.com/riganti/dotvvm/pull/1852#discussion_r2061260909.
We use hacks to call CountAsync, since that isn't available on IAsyncEnumerable. We need to try to resolve the Marten's CountAsync method using reflection, and decide to use it based on the IQueryable type.