generic ADO.NET classes?

  • Thread starter Thread starter Sankar Nemani
  • Start date Start date
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.
 
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.
 
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.
 
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."
 
Back
Top