This question is locked. New answers and comments are not allowed.
I'm getting an "InvalidOperationException" thrown when attempting to execute the following:
var items = new ServiceObject(unitOfWork).SelectAll()
.GroupBy(i => new { i.Value1, i.Value2 })
.Select(i => new ViewModelObject(i.Key.Value1, i.Key.Value2))
.ToArray();
The exception details that "Only 2 of 3 projection result columns used."
However, if I just attempt to load my "ViewModelObject" with just one value I have no issues.
var items = new ServiceObject(unitOfWork).SelectAll()
.GroupBy(i => new { i.Value1, i.Value2 })
.Select(i => new ViewModelObject(i.Key.Value1))
.ToArray();
I'm probably missing something pretty obvious here, but am having a tough time debugging.
Thanks!