Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Using Linq with dynamic variable in the "Where" clause for reflection

$
0
0

Hello guys, 

       How do I insert the following variable which contains the name of a field from my table in the database, in the WHERE clause of linq?

string varField= "Field1"

var lista = db.tabela1.Where( x=> varField.equals("Paula") ?????

Hugs


Viewing all articles
Browse latest Browse all 31927

Trending Articles



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