BTW, for business objects, I suggest inheriting from typed DataSets.  On
the face of this there are some problems with it, but Chris Sells and I
will be releasing a VS add-in in the coming weeks to fix the generated
code to allow you to inherit from it.  I cover this in my forthcoming
book if you want a more comprehensive discussion of it.

Thanks,

Shawn Wildermuth
[EMAIL PROTECTED]

> -----Original Message-----
> From: dotnet discussion [mailto:[EMAIL PROTECTED]]
> On Behalf Of Loc Nguyen
> Sent: Wednesday, May 29, 2002 3:20 PM
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] Checked casting between DataSet and its children
>
>
> I am investigating deriving DataSet for business objects.
> However, since datasets may contain several datatables, I
> need to ensure that the dataset has a specific table.  When
> casting from a dataset to one of my business objects, I would
> like to be able to intercept it and check if this table
> exist.  If it does not, I'd like to throw an invalid cast
> exception.  Can this be done?
>
> You can read messages from the DOTNET archive, unsubscribe
> from DOTNET, or subscribe to other DevelopMentor lists at
> http://discuss.develop.com.
>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to