[RESOLVED]***lemda expression

urgent need require

want to filter results from 2 things in a single query.

query = query.where(x => x.resultset1.name(request.name) )

and

query = query.where(x => x.resultset2.name(request.name) )

however result set 1, could be null also. need to apply null check as well on 1st.

so need a single "query = query.where(x => x.resultset1.name(request.name)   &&   x.resultset2.name(request.name) )"

plz help urgent

query = query.where(x => (resultset1 != null && x.resultset1.name(request.name)) && x.resultset2.name(request.name))

thnx… working :)

Leave a Reply