LINQ:获取表的列名LINQ

由网友(轉身回眸丶淚傾城)分享简介:使用LINQ,我怎样才能得到一个表的列名? C#3.0,3.5框架Using LINQ, how can I get the column names of a table? C# 3.0, 3.5 framework推荐答案我假设你使用LINQ to SQL的意思是,在这种情况下,看DataContext.Ma...

使用LINQ,我怎样才能得到一个表的列名? C#3.0,3.5框架

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

推荐答案

我假设你使用LINQ to SQL的意思是,在这种情况下,看DataContext.Mapping属性。这就是我使用。

I assume you mean by using LINQ to SQL, in which case look at the DataContext.Mapping property. That's what I use.

如果你不是这个意思,也许你可以详细说明你正在努力实现的目标?

If you don't mean that, perhaps you can elaborate on what you are trying to achieve?

阅读全文

相关推荐

最新文章