I want to get all the table headers of my Data Class from my Data Context (named dc).
I tried a lot of different things:
And so on.
I went through a lot of different (stackoverflow) pages, but I'm stuck.
Any help is appreciated.
I want to get all the table headers of my Data Class from my Data Context (named dc).
I tried a lot of different things:
And so on.
I went through a lot of different (stackoverflow) pages, but I'm stuck.
Any help is appreciated.
Solved it by this code: So my GetType DataContext, should have been ProductionDataContext, since I renamed it to that. I was confused by the errors that VS gave, and didn't look further anymore.
Dim dc As New ProductionDataContext
Dim columnNames = dc.Mapping.MappingSource.GetModel(GetType(ProductionDataContext)).GetMetaType(GetType(tblInterventies)).DataMembers