0

I have string

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

Can I generate the linq query from this?

Yair Nevet
  • 12,046
  • 12
  • 61
  • 101

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,362
  • 10
  • 25