1

I am trying to dynamically query Entity Framework, so I'm using the Expression class to put together a LambdaExpression that will be queried against an object set. If I have a reference to LambdaExpression, where I don't have an explicit function defined, is it possible to query against an objectset this way, or is it required to have a generic expression defined (using Expression.Lambda<..>)?

Thanks.

1
  • 1
    Can you give us a sample of the code you want to use? Commented Jun 28, 2011 at 18:48

2 Answers 2

1

This is what I was looking to do:

http://msdn.microsoft.com/en-us/library/bb882637.aspx

Using this, I was able to build a lambda expression against an object set dynamically. Worked very well.

Sign up to request clarification or add additional context in comments.

Comments

0

Check out Dynamic Linq. Basically you can use strings in place of LINQ expressions until you want to use them. Sounds like it might be what you want.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.