Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim TableName As String ="City"
- Dim Str As String="Select * from "+TableName+""
- PropertyInfo info = dataContext.GetType().GetProperty( "City" );
- IQueryable table = info.GetValue( dataContext, null ) as IQueryable;
- var query = table.Where( t => t.Column == "Value" )
- .Select( t => t.OtherColumn );
- string linqObjectName = "Test";
- PropertyInfo info = db.GetType().GetProperty(linqObjectName);
- IQueryable table = info.GetValue(db, null) as IQueryable;
- PropertyInfo[] properties = table.GetType().GetProperties();
- ltr.Text += "properties: <hr size=1/>";
- foreach (PropertyInfo p in properties)
- {
- ltr.Text += p.Name + "<br />";
- }
- PropertyInfo[] properties =
- table.Where("WebRef = "" + webref + """).ElementType.GetProperties();
Add Comment
Please, Sign In to add comment