I'd like to call a property's method of an object through reflection. For instance,
var query = DataContext().SomeTable.Where(u => u.UserID.contains("P");
I've tried the following but no luck:
var query = DataContext().SomeTable.Where(u => u.GetType().GetProperty("UserID").Name.contains("P");
Which returns null. Please help.