Haftungsausschluss bekommen Code zur Laufzeit. Fast alle C# -Sprachen werden unterstützt.
Sie hier einige Beispiele für LINQ Dynamische finden: http://eval-expression.net/linq-dynamic
Aber Sie können wie die Angabe der dbset und Bedingung
Beispiel
string set = "Entity1";
string whereClause = "x.ID > 2";
// CREATE the expression
string expression = "ctx." + set + ".Where(x => " + whereClause + ").ToList();";
// USING a context variable
var ctx = new EntityContext();
var list1 = Eval.Execute(expression, new {ctx});
// USING a context in the expression
EvalManager.DefaultContext.RegisterType(typeof(EntityContext));
var list2 = Eval.Execute("var ctx = new EntityContext();" + expression);
mehr tun