PC Review


Reply
Thread Tools Rate Thread

Inheriting Typed Dataset and its DataTable

 
 
=?Utf-8?B?UnlhbiBTaGF3?=
Guest
Posts: n/a
 
      20th May 2004
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?


 
Reply With Quote
 
 
 
 
Miha Markic [MVP C#]
Guest
Posts: n/a
 
      20th May 2004
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" <(E-Mail Removed)> wrote in message
news:E867331C-5EF7-4A5E-81B1-(E-Mail Removed)...
> 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?
>
>



 
Reply With Quote
 
Dov Landau
Guest
Posts: n/a
 
      15th Jun 2004
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 [MVP C#]" <miha at rthand com> wrote in message
news:Ofd%(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:E867331C-5EF7-4A5E-81B1-(E-Mail Removed)...
> > 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?
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I assign a typed DataTable to its typed DataSet? A.M-SG Microsoft ADO .NET 6 1st Feb 2006 07:13 AM
Does anyone see any problems inheriting from DataSet, DataTable & DataRow? Mark Miller Microsoft ADO .NET 1 23rd May 2004 07:51 AM
copying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N Microsoft ADO .NET 2 31st Oct 2003 02:05 PM
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N Microsoft C# .NET 1 31st Oct 2003 03:39 AM
Inheriting a Dataset and DataTable Johan du Toit Microsoft Dot NET Framework Forms 1 21st Oct 2003 08:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:51 PM.