使用 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?
这篇关于LINQ:获取表列名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
LINQ to SQL:如何在不检索整个实体的情况下更新唯LINQ to SQL: how to update the only field without retrieving whole entity(LINQ to SQL:如何在不检索整个实体的情况下更新唯一字段)
string1 >= string2 未在 Linq to SQL 中实现,有什string1 gt;= string2 not implemented in Linq to SQL, any workaround?(string1 gt;= string2 未在 Linq to SQL 中实现,有什么解决方法吗?)
如何在条件下使用 RemoveAll 删除列表中的多个项目How to Remove multiple items in List using RemoveAll on condition?(如何在条件下使用 RemoveAll 删除列表中的多个项目?)
转换表达式树Convert Expression trees(转换表达式树)
当 IDENTITY_INSERT 设置为 OFF 时,无法为表“ClientCannot insert explicit value for identity column in table #39;ClientDetails#39; when IDENTITY_INSERT is set to OFF(当 IDENTITY_INSERT 设置为 OFF 时,
Linq 独特的 &最大限度Linq distinct amp; max(Linq 独特的 amp;最大限度)