LINQ: Get Table Column Names

后端 未结 11 770
-上瘾入骨i
-上瘾入骨i 2020-12-31 01:14

Using LINQ, how can I get the column names of a table? C# 3.0, 3.5 framework

11条回答
  •  北荒
    北荒 (楼主)
    2020-12-31 01:38

                var query = from x in DataBase.Table_Name
                            select x.Column_Name;
    

提交回复
热议问题