J
JT
Hi all,
I am working with LINQ in Framework 3.5 in a VB9 Windows Forms 2.0 project.
My compile options include strict ON, explicit ON, and Infer ON. My
references include System.Core, System.Data.DataSetExtensions, System.Data
and System.XML. My app targets the 3.5 framework. I am using VS2008 VSTD.
I would like to be able to use syntax like:
Dim q = From dRow In MyStronglyTypedDataTable Where
dRow.MyIntegerDataColumnName= 12345
Instead, I am having to use the following syntax:
Dim q = From dRow In MyStronglyTypedDataTable Where
CInt(dRow!MyIntegerColumnName) = 12345
As you can see, I cannot seem to get the intellisense from dRow that should
come from a strongly typed datatable. Instead, I just the options for a
standard datarow and have to do the unboxing operation on an object.
Can someone please tell me what I am doing wrong or missing?
Thanks.
John
I am working with LINQ in Framework 3.5 in a VB9 Windows Forms 2.0 project.
My compile options include strict ON, explicit ON, and Infer ON. My
references include System.Core, System.Data.DataSetExtensions, System.Data
and System.XML. My app targets the 3.5 framework. I am using VS2008 VSTD.
I would like to be able to use syntax like:
Dim q = From dRow In MyStronglyTypedDataTable Where
dRow.MyIntegerDataColumnName= 12345
Instead, I am having to use the following syntax:
Dim q = From dRow In MyStronglyTypedDataTable Where
CInt(dRow!MyIntegerColumnName) = 12345
As you can see, I cannot seem to get the intellisense from dRow that should
come from a strongly typed datatable. Instead, I just the options for a
standard datarow and have to do the unboxing operation on an object.
Can someone please tell me what I am doing wrong or missing?
Thanks.
John