如何在实体框架中实现以下查询方法,下面是 NHibernate 文档http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/querycriteria.html的片段
Example example = Example.create(cat)
.excludeZeroes() //exclude zero valued properties
.excludeProperty("color") //exclude the property named "color"
.ignoreCase() //perform case insensitive string comparisons
.enableLike(); //use like for string comparisons
List results = session.createCriteria(Cat.class)
.add(example)
.list();