M
mrpubnight
I was hoping someone with some experience can help me. I'm rather new
to .Net and OO programming. I'm trying to create an object model for a
project I'm working on and I'm somewhat confused how to go about
creating this using VS.Net.
I want to create a class structure that resembles the following - this
does not reflect the actual names, they are just for example:
Projects
Projects.Internal
Projects.Internal.Accounting
Projects.External.Extranet
Each of those items above should be separate classes however I would
like them all to compile into one .dll.
Currently in VS.Net, I've created one solution and then added each of
the above as a different project. This has left me with 4 separate
..dlls.
I would like to mimic something like System.Data where you load the
System.Data.dll library but with that you get SQLClient, etc...
Clearly SQLClient could have been compiled into it's own dll but it
resides within System.Data.dll.
Would it involve creating a base class, Projects, and then each
subsequent class inherits from that class, i.e. Internal, External.
Then Accounting and Extranet would inherit from these inherited classes
(Internal, External respectively). What if there is nothing to really
inherit? I'd like to use this type of namespace in hopes to keep
things organized and I'd like to have everything compile into a single
..dll. Like I said, I can create the schema I want by creating multiple
projects using the same naming convention and thus my namespace will be
defined a certain way but I don't feel that this is the 'correct'
manner in which to do things.
Can any point my in the right direction.
Thanks,
Frank
to .Net and OO programming. I'm trying to create an object model for a
project I'm working on and I'm somewhat confused how to go about
creating this using VS.Net.
I want to create a class structure that resembles the following - this
does not reflect the actual names, they are just for example:
Projects
Projects.Internal
Projects.Internal.Accounting
Projects.External.Extranet
Each of those items above should be separate classes however I would
like them all to compile into one .dll.
Currently in VS.Net, I've created one solution and then added each of
the above as a different project. This has left me with 4 separate
..dlls.
I would like to mimic something like System.Data where you load the
System.Data.dll library but with that you get SQLClient, etc...
Clearly SQLClient could have been compiled into it's own dll but it
resides within System.Data.dll.
Would it involve creating a base class, Projects, and then each
subsequent class inherits from that class, i.e. Internal, External.
Then Accounting and Extranet would inherit from these inherited classes
(Internal, External respectively). What if there is nothing to really
inherit? I'd like to use this type of namespace in hopes to keep
things organized and I'd like to have everything compile into a single
..dll. Like I said, I can create the schema I want by creating multiple
projects using the same naming convention and thus my namespace will be
defined a certain way but I don't feel that this is the 'correct'
manner in which to do things.
Can any point my in the right direction.
Thanks,
Frank