Answer the question
In order to leave comments, you need to log in
How to do .where() filtering in Immediate Window?
The breakpoint is on the next line after GetQuery(): var query = _dataContext.GetQuery<SomeType>();
In Visual Studio, in the Immediate Window, you can execute ToList():
query.ToList();
Count = 1
[0]: {HelloQueryProject.Entities.DataBaseModel.SomeType}
query.Where(p => p.SomeField == null).ToList();
Evaluation of method System.Linq.Expressions.Expression.Property requires reading field System.Reflection.RuntimeMethodInfo.m_handle, which is not available in this context.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question