public void TestNewInstance() { using (var database = new CouchDatabase("http://localhost:5984/")) { var mapping = new ImplicitMapping(); var policy = new QueryPolicy(); var provider = new CouchDbQueryProvider(new CouchDbConnection(database), mapping, policy); var query = new Query<Car>(provider); var queryable = query.Where(x => x.Make == "Audi" && x.HorsePowers == 123); var cars = queryable.ToList(); foreach (var car in cars) { car.Model = "Cool"; } } }
public QueryTranslator(QueryLanguage language, QueryMapping mapping, QueryPolicy policy) { this.linguist = language.CreateLinguist(this); this.mapper = mapping.CreateMapper(this); this.police = policy.CreatePolice(this); }
public QueryPolice(QueryPolicy policy, QueryTranslator translator) { this.policy = policy; this.translator = translator; }