Reputation: 2599
I am using json convert to create a DtoPolicy object. I would like to be able to query against this to get the result set that i need. Visual Studio tells me that the IEnumerable I am trying to query against has no definition of FindByExp. I think it has to do with the fact that it comes across as Json and then gets deserialized. Has anyone had success querying against an object like this?
EligiblePolicies = JsonConvert.DeserializeObject<IEnumerable<DtoPolicy>>(_app2Lead._app2Queries.ResponseFromWebServices);
var Eligible2 = EligiblePolicies.FindByExp(bigredsquiggleshere)(x => x.PolicyIssueDate >= DateTime.Today);
Upvotes: 2
Views: 77