I'm not sure how well this will play with LINQ to SQL, but you can use Expression. GreaterThan to create the appropriate binary-expression, and then it's just a matter of creating the right Expression>(body, score. Parameters) The final expression will look something like: p => (( testList.Count() > 0 && p.Name.
Contains(testList.FirstOrDefault())? 1 : 0 ) > 2 Of course, that does look a little nonsensical because it can never be true. Are you sure you intended to do this?
Perhaps you really want to compare it with 1 or 0 for equality instead?
I'm not sure how well this will play with LINQ to SQL, but you can use Expression. GreaterThan to create the appropriate binary-expression, and then it's just a matter of creating the right Expression from that. Var body = Expression.
GreaterThan(score. Body, Expression. Constant(2)); var ifScore = Expression.
Lambda>(body, score. Parameters); The final expression will look something like: p => (( testList.Count() > 0 && p.Name. Contains(testList.FirstOrDefault())?1 : 0 ) > 2 Of course, that does look a little nonsensical because it can never be true.
Are you sure you intended to do this? Perhaps you really want to compare it with 1 or 0 for equality instead?
Thanks. It is just a sample, but your 2 lines up top works perfectly. – Jarrett Widman Feb 19 at 15:26.
I'm not sure how well this will play with LINQ to SQL, but you can use Expression. GreaterThan to create the appropriate binary-expression, and then it's just a matter of creating the right Expression from that. Of course, that does look a little nonsensical because it can never be true.
Are you sure you intended to do this? Perhaps you really want to compare it with 1 or 0 for equality instead?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.