Quantcast
Channel: Silverlight 5 forum
Viewing all articles
Browse latest Browse all 1083

Field names access by string

$
0
0

I use the following code to refer to a field from the database:

Predicate<object> predicate1 = (Q => ((tblResource)Q).FldShortName == "john")

where tblResource is the name of the table and FldShortName is the name of the field.

All works well but how do you use the above if the field name is not hard coded but is instead a string value?



Viewing all articles
Browse latest Browse all 1083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>