Inheriting Typed Dataset and its DataTable

G

Guest

I’m having trouble with Typed Datasets
I would like to add functionality to my typed dataset at the business layer such as delete rules or editing rules by inheriting it.

Can I inherit the datatable? I’m having trouble because of the constructor.
Can I override the row change event routines? How do I do that?

I can inherit the dataset and datatable classes but the trouble I'm having is with a typed dataset!
How can I control these features in a typed dataset without my presentation layer having to do it?
 
M

Miha Markic [MVP C#]

Hi Ryan,

One way would be to create typed dataset code by yourself.
You might take a look at Code Smith at
http://www.ericjsmith.net/codesmith/.
I think it has a strong typed dataset template which you can freely modify
to your needs.

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

Ryan Shaw said:
I'm having trouble with Typed Datasets
I would like to add functionality to my typed dataset at the business
layer such as delete rules or editing rules by inheriting it.
Can I inherit the datatable? I'm having trouble because of the constructor.
Can I override the row change event routines? How do I do that?

I can inherit the dataset and datatable classes but the trouble I'm having is with a typed dataset!
How can I control these features in a typed dataset without my
presentation layer having to do it?
 
D

Dov Landau

I downloaded the CodeSmith that generates a Strongly Typed Dataset, but
unfortunately, You can generate a dataset of 1 table... You can't generate a
DS with few tables and relations between them.... So what is the advantage??

Miha Markic said:
Hi Ryan,

One way would be to create typed dataset code by yourself.
You might take a look at Code Smith at
http://www.ericjsmith.net/codesmith/.
I think it has a strong typed dataset template which you can freely modify
to your needs.

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

Ryan Shaw said:
I'm having trouble with Typed Datasets
I would like to add functionality to my typed dataset at the business
layer such as delete rules or editing rules by inheriting it.
Can I inherit the datatable? I'm having trouble because of the constructor.
Can I override the row change event routines? How do I do that?

I can inherit the dataset and datatable classes but the trouble I'm
having
is with a typed dataset!
How can I control these features in a typed dataset without my
presentation layer having to do it?
 

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