Repository navigation
How to approach potential breaking changes #5627
|
I found an issue with LINQ translation for grouped projections, but fixing it might break some users, so I wanted to discuss the correct approach. The problem is that when I use Example: var result = grouped
.Select(x => new {
...,
Exists = x.Any(i => i.Data == null) // .Any is not supported, so this property will be omitted
});This returns a collection where I think the correct behavior would be to throw Does it make sense to fix it, maybe at least for the next major version? |
Replies: 1 comment
|
@tomasherceg Hey, I don't typically watch discussions very closely, so use Discord if you need quicker answers. I would prefer that it throw BadLinqExpressionException anytime we can't handle something. It's also really fucking hard to anticipate every single thing a huge population of clever people are going to try to do over time, and hence, what you see |
@tomasherceg Hey, I don't typically watch discussions very closely, so use Discord if you need quicker answers. I would prefer that it throw BadLinqExpressionException anytime we can't handle something. It's also really fucking hard to anticipate every single thing a huge population of clever people are going to try to do over time, and hence, what you see