E
Ed_P.
Hello,
I've been creating small applications in c# using an access db backend.
I've noticed that on all of those applications I rarely apply any OOP
technologies (such as Inheretance, Encapusulation, Interfaces, etc.). I
would like to take advantage of those technologies so that the
applications I create are easier to maintain and can be upgraded with
out (or as little) problems as possible. Speaking to a developer he
told me to try to sepearte the program into layers (presentation,
business, data access). I know how to create the presenation, but I am
getting stuck how to set up the other two layers.
Maybe I can give you an example of what I am trying to do and someone
out there can tell me how I could set up this. I have the following
tables in a database:
Customers
CustomerTypes
Contacts
ContactTypes
TechTickets
TechTicketTypes
TechAgents
TechAgentTypes
In the past applications I've created a class that would query the
database and query it to retreive a list of Customers, open Tech
Tickets, List of Tech Agents, and list of Contacts. This is all that I
have done to work with the data in the database.
Things I'd like to do is to be able to create new Customers, Contacts,
TechTickets, etc. in the Database. In addition I'd want to search for
and edit the entities referenced above.
Can anyone give me an idea as to how you would try to what I am trying
to do. Maybe there are some web sites out there with an example that I
can use as a template on how to go about doing this? Any information
that you can provide will be greatly appreciated!
Thanks,
Ed_P.
I've been creating small applications in c# using an access db backend.
I've noticed that on all of those applications I rarely apply any OOP
technologies (such as Inheretance, Encapusulation, Interfaces, etc.). I
would like to take advantage of those technologies so that the
applications I create are easier to maintain and can be upgraded with
out (or as little) problems as possible. Speaking to a developer he
told me to try to sepearte the program into layers (presentation,
business, data access). I know how to create the presenation, but I am
getting stuck how to set up the other two layers.
Maybe I can give you an example of what I am trying to do and someone
out there can tell me how I could set up this. I have the following
tables in a database:
Customers
CustomerTypes
Contacts
ContactTypes
TechTickets
TechTicketTypes
TechAgents
TechAgentTypes
In the past applications I've created a class that would query the
database and query it to retreive a list of Customers, open Tech
Tickets, List of Tech Agents, and list of Contacts. This is all that I
have done to work with the data in the database.
Things I'd like to do is to be able to create new Customers, Contacts,
TechTickets, etc. in the Database. In addition I'd want to search for
and edit the entities referenced above.
Can anyone give me an idea as to how you would try to what I am trying
to do. Maybe there are some web sites out there with an example that I
can use as a template on how to go about doing this? Any information
that you can provide will be greatly appreciated!
Thanks,
Ed_P.