linq - How return multi table(of T) by vb.net function -
i use linq model sql database, , need make function insert data every table.
dim mydata object = myarray (1) dim indx integer=1 call insertdata (indx) ... sub insertdata (indx integer) myfunction(indx) '_context.table1s .insertonsubmit(myarray(indx)) end _context.submitchanges() end sub function myfunction(i integer) select case case 1 :return _context.table1s case 2:return _context.table2s case 3: return _context.table3s ... end select end function function myarray (i integer) select case case 1 : dim y table (of table1) ' ... y set return y case 2 dim y2 table (of table2) .... return y2 ... end select end function
how can this?
Comments
Post a Comment