English 中文(简体)
LINQ 可用于数据
原标题:LINQ on DataTable
  • 时间:2012-01-12 21:42:47
  •  标签:
  • c#
  • linq

我有一个令人困惑的问题。

最近,我收到8个月前在2008年全球S网络开发商上写的一些密码。 现在,我已迁到2010年,因此我对该项目进行了升级,但情况并非如此。 如今,由于以下守则,它赢得了建树:

IMSDataSet.vwPartDataTable table = new IMSDataSet.vwPartDataTable();
        da.Fill(table);

        //Convert to Parts
        return table.Select<IMSDataSet.vwPartRow, Part>((row) => { return new Part(row); }).ToArray();

Where vwPartDataTable is created using the Data Set designer in Visual Studio. Now having a look around on SO it appears that this is incorrect code, and I need a AsEnumerable() in there. However the thing is. I deployed this code. There s load of these lines, I used them everywhere, so it must have worked.

该项目将所有物品升级到4.0英元,但将其退回到3.5无效果。

任何人都能够弄清。 我倾向于保留该守则,因为这正是客户所拥有的。

感谢。

最佳回答

回答这一点。 我错误地安装了SQ部分。 我在试图打开我的Xsd(拖累和空投数据表设计器)时遇到一个错误,涉及一个缺失的包裹。 这种做法被归入产生旧或基本法典的习惯工具,其中不包括一般用途支助,因此所使用的一般准则职能I是可用的。

要做到这一点,就必须安装不固定的视像网络开发商和网络4,然后重新安装。 我还安装了服务器2008 R2, 单独表示,而不是让视觉网络开发商(VWD)安装台。 这就是我以前所做的。

问题回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签