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
|
Support, I'm very sure this is possible and I'm probably just overlooking it, but how can I get a column value from an entity using the column string instead of the property? Thanks. |
|
|
Is this to specify the name of the property when querying? If so look at using our query specification API rather than LINQ and you can use Entity.Attribute(propertyName) to specify the name of a column as part of a query. If you are wanting to add a property in for a projection (e.g. select out these two columns) you can use Query.Projection.Add(propertyName). Does that cover what you were after?
|
|
|
Kind of, in a round a bout way I think. I'm needing to dynamically specify a column name. In one table I have a row that allows you to specify which column of another table you are using. So after I get my returned row, I need to dynamically specify the column name as I won't know which property it is using, since it is dynamic. Does this make any sense? Please see attached photo |
|
|
Dynamically specify it for selection? If so this sounds like you would want to use a projection and supply the column which has been asked for - as per above this can be supplied as a string. Or you are fetching an entity which has all of those columns and then you want to extract the value off one of the properties based on a string that is supplied?
|
|
|
Or you are fetching an entity which has all of those columns and then you want to extract the value off one of the properties based on a string that is supplied? I was able to get this to work. |
|