How do I decompose a Predicate Expression into a query?

后端 未结 3 1847
一个人的身影
一个人的身影 2020-12-30 16:04

I have the following class Person, with a custom Where method:

public class Person
{
    public string Name { get; set; }
    publi         


        
3条回答
  •  暖寄归人
    2020-12-30 16:15

    What you're wanting to do is very complicated, and there are entire frameworks that are built to do this, so you don't have to write the logic yourself. Take a look at LINQ to Entities and LINQ to SQL, e.g.

提交回复
热议问题