J
Johnny Meredith
Hi,
I'm relaively new to programming languages in general, and brand
new to VB.NET. I use/used VBA in MS Access previously to do what
I needed. I want to learn VB.NET to stretch my boundaries a bit.
Anyway, I'm developing an application to track the progress of
tax audits. Originally, I thought I would write objects something
like this:
Public MustInherit Class Document...
<<<abstract class for all document types>>>
Public Class IDR
inherits Document
<<<an IDR document>>>
etc.
All docs inherit from a single base class. Docs expose properties
like Number, Description, etc. Methods are Add, Update, Delete.
There would be a non-default constructor exposed to instantiate a
document that already exists in the datasource, something like...
Public Sub New(Byval value as Integer)
where value is the key used in a search of the table for the doc.
These were my original thoughts. Now that I know alot more about
strongly typed datasets, I wonder if it's even worth the effort to
manually create these objects (especially give the ability to bind
forms to data adapters) Or, as a compromise, should the
object expose a dataset/adapter itself as a property? At that
point, the ojbect is really just an advanced controller for the
exposed dataset I think.
I think I'm mixing concepts here, but I have not read enough to
understand where I'm screwing up. Does anyone understand my delimma?
Thanks,
Johnny
I'm relaively new to programming languages in general, and brand
new to VB.NET. I use/used VBA in MS Access previously to do what
I needed. I want to learn VB.NET to stretch my boundaries a bit.
Anyway, I'm developing an application to track the progress of
tax audits. Originally, I thought I would write objects something
like this:
Public MustInherit Class Document...
<<<abstract class for all document types>>>
Public Class IDR
inherits Document
<<<an IDR document>>>
etc.
All docs inherit from a single base class. Docs expose properties
like Number, Description, etc. Methods are Add, Update, Delete.
There would be a non-default constructor exposed to instantiate a
document that already exists in the datasource, something like...
Public Sub New(Byval value as Integer)
where value is the key used in a search of the table for the doc.
These were my original thoughts. Now that I know alot more about
strongly typed datasets, I wonder if it's even worth the effort to
manually create these objects (especially give the ability to bind
forms to data adapters) Or, as a compromise, should the
object expose a dataset/adapter itself as a property? At that
point, the ojbect is really just an advanced controller for the
exposed dataset I think.
I think I'm mixing concepts here, but I have not read enough to
understand where I'm screwing up. Does anyone understand my delimma?
Thanks,
Johnny