// some code is omitted Expression<Func<Person,bool>> condition = p => p.Name.Contains("John") && p.Addreses.Any(adr => adr.City.Contains("Moscow") && adr.Street.Contains("Yuri Gagarin") && adr.Building == 23); // and so on... // some code is omitted // Gets the quantity of records were found public int GetCountBy(Expression<Func<T,bool>> condition) { // here it throws an Exception return db.Persons.Count(condition); }
variable 'person' of type 'Reestr.DAL.Entities.Person' referenced from scope '', but it is not defined
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)