❔ How can I make a function of a simple condition EF Core translatable
Hey, so I have this function, but it seems to throw an error by not being translatable by EF Core, even though if the code is extracted from the function, it seems to work just fine.
Function that cannot be translated:
But this is fine:
Can anyone explain how I can fix that?
Function that cannot be translated:
But this is fine:
Can anyone explain how I can fix that?