How can I create expression to be used in another expression?

The problem lies here: public static bool IsProductOfType1(ProdType. ProdTypeEnum eProdTypeId) This method should return an Expression.

The problem lies here: public static bool IsProductOfType1(ProdType. ProdTypeEnum eProdTypeId) This method should return an Expression instead of bool. Any call to external methods won't be converter by LINQ to SQL.

I can't use it as a usual method (as it requires compilation before usage). But once I compile it I will get the same error (guess). – Budda Mar 11 at 17:23 Not quite familiar with expressions, but, can't you change IsProductOfType1 to return an expression so that you can use it something like IsProductOfType1()((ProdType.

ProdTypeEnum)dbEntity. ProdId)? – decyclone Mar 11 at 17:27 You can't pass a parameter to expression.

You would be correct if you right something like this: IsProductOfType1().Compile()((ProdType. ProdTypeEnum)dbEntity. ProdId).

But as I told that will be almost equal to just calling method – Budda Mar 11 at 17:31.

Type the expression, or click the Build button to the right of the property box to create an expression by using the Expression Builder. Close the property sheet. In some cases, you might want to carry out an action or series of actions in a macro only if a particular condition is true.

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.

Related Questions