Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to async join tables in RavenDB

I need to do query from two raven db tables.
I found almoust perfect solution in documentation, only problem is im using async session and have no idea what is async equivalent.

var q = from order in dq
let company = session.Load<Company>(order.Company)
select new
{
    order.Freight,
    company.Name
    
};

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

The correct syntax is:
RavenQuery.Load<Company>(order.Company)

https://ravendb.net/docs/article-page/5.4/csharp/indexes/querying/projections#example-viii—projection-using-a-loaded-document

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading