User-330204900 posted
Hi give this a try:
var realTable = table.Attributes.OfType<SYSTEM.DATA.LINQ.MAPPING.TABLEATTRIBUTE>().FirstOrDefault().Name;
This should get you the name of the table like "dbo.Categories"
abd the VB is:
Dim realTable = table.Attributes. _
OfType(Of System.Data.Linq.Mapping.TableAttribute). _
FirstOrDefault().Name
Hope this helps [:D]