You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EF Framework used to provide specific errors if an expression could not be translated. I you tried to do DateTime.Now - entity.Time > myTimespan it would give you an errors like "TimeSpan can not be translated using Linq-to-SQL"
EFCore seems to just give a generic "The LINQ Expression could not be translated" error, but no additional guidance on which part of the expression is causing the problem. This causes unnecessary confusion when trying to determine which part of a LINQ expression is causing the problem, and I could see it being unnecessarily difficult for a newer user without a deep understanding of what Linq-to-SQL does and does not support.
Perhaps an inner exception could be passed through on InnerException or a better explanation message should be surfaced another way to describe the exact statements that are unable to be translated.
The text was updated successfully, but these errors were encountered:
EF Framework used to provide specific errors if an expression could not be translated. I you tried to do
DateTime.Now - entity.Time > myTimespan
it would give you an errors like "TimeSpan can not be translated using Linq-to-SQL"EFCore seems to just give a generic "The LINQ Expression could not be translated" error, but no additional guidance on which part of the expression is causing the problem. This causes unnecessary confusion when trying to determine which part of a LINQ expression is causing the problem, and I could see it being unnecessarily difficult for a newer user without a deep understanding of what Linq-to-SQL does and does not support.
Perhaps an inner exception could be passed through on
InnerException
or a better explanation message should be surfaced another way to describe the exact statements that are unable to be translated.The text was updated successfully, but these errors were encountered: