0

I have string

var query = new StringBuilder();
query.Append("myDb.Holiday.FirstOrDefault()");

Can I generate the linq query from this?

Yair Nevet
  • 12,725
  • 14
  • 66
  • 108

1 Answers1

0

Yes if you want to do it you have to write a parser yourself.

This awnser solves the linq OrderBy from string and from there you should be able to implement the rest of the functions you require.

This is a good implementation of that awnser.

Community
  • 1
  • 1
Imapler
  • 1,401
  • 12
  • 26