var defaultCountry = await _dSession.Query<Country>() .Select(x => new CountryModel(x.Code, x.Name, x.Region)) .FirstOrDefaultAsync(cancellationToken);System.NullReferenceException: Object reference not set to an instance of an object. at Raven.Client.Documents.Linq.RavenQueryProviderProcessor`1.VisitSelect(Expression operand) in C:\Builds\RavenDB-Stable-4.2\42021\src\Raven.Client\Documents\Linq\RavenQueryProviderProcessor.cs:line 2156 at Raven.Client.Documents.Linq.RavenQueryProviderProcessor`1.VisitQueryableMethodCall(MethodCallExpression expression) in C:\Builds\RavenDB-Stable-4.2\42021\src\Raven.Client\Documents\Linq\RavenQueryProviderProcessor.cs:line 1585 at Raven.Client.Documents.Linq.RavenQueryProviderProcessor`1.VisitMethodCall(MethodCallExpression expression, Boolean negated) in C:\Builds\RavenDB-Stable-4.2\42021\src\Raven.Client\Documents\Linq\RavenQueryProviderProcessor.cs:line 1013 at Raven.Client.Documents.Linq.RavenQueryProviderProcessor`1.VisitExpression(Expression expression) in C:\Builds\RavenDB-Stable-4.2\42021\src\Raven.Client\Documents\Linq\RavenQueryProviderProcessor.cs:line 197 at Raven.Client.Documents.Linq.RavenQueryProviderProcessor`1.GetAsyncDocumentQueryFor(Expression expression, Action`1 customization) in C:\Builds\RavenDB-Stable-4.2\42021\src\Raven.Client\Documents\Linq\RavenQueryProviderProcessor.cs:line 3217 at Raven.Client.Documents.Linq.RavenQueryProvider`1.ToAsyncDocumentQuery[TResult](Expression expression) in C:\Builds\RavenDB-Stable-4.2\42021\src\Raven.Client\Documents\Linq\RavenQueryProvider.cs:line 254 at Raven.Client.Documents.LinqExtensions.FirstOrDefaultAsync[TSource](IQueryable`1 source, CancellationToken token) in C:\Builds\RavenDB-Stable-4.2\42021\src\Raven.Client\Documents\LinqExtensions.cs:line 611if (newExpression.Arguments[index] is MemberExpression member && HasComputation(member) == false){ AddToFieldsToFetch(GetSelectPathOrConstantValue(member), GetSelectPath(newExpression.Members[index])); continue;}--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/c166df98-614b-4492-be16-05543f8bdc72%40googlegroups.com.
![]() | Oren Eini CEO / Hibernating Rhinos LTD
|
![]() | Grisha Kotler Team Leader / Hibernating Rhinos LTD
|
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/CAF0G-ZhV8owVzU55AaFJRRg2eQXsP1FNVy5RkrT_JU-azSJ1UA%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/c166df98-614b-4492-be16-05543f8bdc72%40googlegroups.com.
----
Oren Eini
CEO / Hibernating Rhinos LTD
Mobile: +972-52-548-6969 Sales: sa...@ravendb.net
Skype: ayenderahien Support: sup...@ravendb.net
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rav...@googlegroups.com.