You can use square braces e.g.
var column = "Id";
var person = db.Person.Find(db.Person[column] == 107024);
You can even use square braces for a table name if you wish…
HTH
Rippo
--
You received this message because you are subscribed to the Google Groups "Simple.Data" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
simpledata+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
var ticket = Program.Db["Tablename"].Select(Program.Db["Tablename"].SomeProperty == 1).First();
var dicTicket = (IDictionary<string, object>)ticket; var assignee = dicTicket["someColumnName"];
--
You received this message because you are subscribed to a topic in the Google Groups "Simple.Data" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simpledata/RkyOSiXwqpU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simpledata+...@googlegroups.com.