vb.net - How can I dynamically select my Table at runtime with Dynamic LINQ -
i'm developing application allow engineers conduct simple single table/view queries against our databases selecting database, table, fields. i how use dynamic linq library sample provide dynamically selecting select, , order clauses @ runtime i'm @ impass on how allot table choice. is there way provide dynamically selecting "from" table @ run time, , if how provide concrete example or point me in direction of has? thank ever much. edit so both of answers seem saying same general idea. i'm going try convert c# vb , work. the first answer converts notinheritable class datacontextextensions private sub new() end sub <system.runtime.compilerservices.extension> _ public shared function gettablebyname(context datacontext, tablename string) itable if context nothing throw new argumentnullexception("context") end if if tablename nothing throw new argumentnullexception(...