Table Field in linq RRS feed

  • Question

  • hi

    my code that can get table  tablename in linq query is:

             Dim TY As Type = (From T In DB.Mapping.GetTables() Where T.TableName = tableN  Select T.RowType.Type).SingleOrDefault

                Dim Table As ITable = DB.GetTable(TY)
               Dim mq = From t In Table Select t

    tableN get from another form. I want  to access the field of Table and use in linq query .how?

    for example:

      Dim mq = From t In Table Select t.Code

    vote down

    check I don't know the the name and type of my selected table until query executed.

    please help me!!!!!!!!

    Monday, January 26, 2009 3:03 AM