Passing a Linq expression as a string?

前端 未结 3 1027
死守一世寂寞
死守一世寂寞 2021-01-14 03:20

The following code works fine

        using (var ctx = new MyEntities())
        {
            var devices = ctx.Devices
               .Where(x=> x.Devic         


        
3条回答
  •  梦谈多话
    2021-01-14 04:00

    You have to build the Expression manually.

    IIRC, there is a DynamicExpressions library in the LINQ101 samples that can do this for you.

提交回复
热议问题