C#C
C#•4y ago
Johnny 🌸

Linq Where JsonSerialization not working

Hey, is there a way to get the following running:
dbSet.Set<Table>().Where(x => JsonSerializer.Deserialize<Object>(x.Value).Number1 == localGivenNumber).ToList();


I am getting the error an expression tree cannot contain a call or invocation that uses optional arguments
Was this page helpful?