generic ADO.NET classes?

S

Sankar Nemani

Is there any discussion on the availability of generic classes for ADO.NET
classes to create strongly typed versions? We were able to create typed
datasets easily but it was not easy to create a typed datatable "that could
give a typed DataView" since DataView is what is mostly used for
databinding.
 
M

Miha Markic [MVP C#]

Hi Sankar,

Hm, there is no big need for typed dataviews IMO.
You might access the DataRow directly through DataView.Row property and cast
it to strong typed row.
 
S

Sankar Nemani

But are there any "generic" classes for the common ADO.NET classes for
instance a datatable

Miha Markic said:
Hi Sankar,

Hm, there is no big need for typed dataviews IMO.
You might access the DataRow directly through DataView.Row property and cast
it to strong typed row.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

Sankar Nemani said:
Is there any discussion on the availability of generic classes for ADO.NET
classes to create strongly typed versions? We were able to create typed
datasets easily but it was not easy to create a typed datatable "that could
give a typed DataView" since DataView is what is mostly used for
databinding.
 
K

Kevin Yu [MSFT]

Hi Sankar,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to find some generic classes
for common ADO.NET classes for instance a datatable. If there is any
misunderstanding, please feel free to let me know.

As far as I know, there isn't such classes that create typed DataTable or
typed DataViews. Just as Miha mentioned, there is no need for typed
dataviews. You might access the DataRow directly through DataView.Row
property and cast it to strong typed row.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top