We're updating the issue view to help you get more done. 

Query by Example in Linq

Description

The Criteria API allows querying by example: we pass an example instance of an entity and it will be used for query matching.
My proposal is to have something similar in Linq:

1 2 3 var example = new Address { City = "Berlin" }; var customersOfBerlin = session.Query<Customer>().ByExample(example).ToList();

A pull request will follow shortly.

Environment

None

Status

Assignee

Alexander Zaytsev

Reporter

Ricardo Peres

Components

Affects versions

4.0.1

Priority

Trivial