This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
hello, I want to get rows from one table (Document) where on of my "where"-clauses depends on another table. Table "Document" 1:n "DocumentData" (DocumentData contains row "DocumentId") Here is my query:
After I execute this query, I get the following error:
When I remove the "DocumentData.State"-expression and add something like
to test another dependency it works (the only difference is the relation between the tables: Document n:1 Job). Could you help me here? I prefere Linq-Statements but the columnname could be any of the table so I have to use strings. Is there any way to use string-names for columns in linq-expressions? thanks Tobi |
|
|
I found a way to use Linq with dynamic Columnnames. Microsoft has an Class called DynamicLinq (System.linq.dynamic) If someone needs this too, here is a link: enter link description here thanks Tobi |
|
|
Did you still need help with this or have you solved this now by using DynamicLinq?
|
|
|
I could solve my problem with the dynamic linq. Thanks |
|
|
Please post an example of the solution using DynamicLinq. This would be helpful. Thanks! |
|