473,323 Members | 1,551 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Advice needed - splitting up my solution...

Hi,

I'm creating an CRM solution for my company.

I want to split up the solution into several classlibraries, so I dont need
to build the entire solution every time I run my project.

First I thought about splitting my application up into these libraries:

Solution (solution)
CRM.Business (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)
CRM.Presentation (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)
CRM.Data (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)

Then I thought about reversing it like....

Solution (solution)
Customer (class library project)
Business (classes)
Presentation (classes)
Data (classes)
Contacts (class library project)
Business (classes)
Presentation (classes)
Data (classes)
Documents (class library project)
Business (classes)
Presentation (classes)
Data (classes)
Mails (class library project)
Business (classes)
Presentation (classes)
Data (classes)

And then there's all this redundance to keep in mind.

How would you do it and why??

Is there some kind of best-practice? .... examples??

Thanks!!!

M O J O
Jul 21 '05 #1
8 1532

"M O J O" <mojo@_no_spam_delete_this_newwebsolutions.dk> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

I'm creating an CRM solution for my company.

I want to split up the solution into several classlibraries, so
I dont need to build the entire solution every time I run my
project.

First I thought about splitting my application up into these
libraries:

Solution (solution)
CRM.Business (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)
CRM.Presentation (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)
CRM.Data (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)

Then I thought about reversing it like....

Solution (solution)
Customer (class library project)
Business (classes)
Presentation (classes)
Data (classes)
Contacts (class library project)
Business (classes)
Presentation (classes)
Data (classes)
Documents (class library project)
Business (classes)
Presentation (classes)
Data (classes)
Mails (class library project)
Business (classes)
Presentation (classes)
Data (classes)

And then there's all this redundance to keep in mind.

How would you do it and why??

Is there some kind of best-practice? .... examples??


I wouldn't use either of these models. Instead I would do this:

Business (Class Lib)
Presentation (Class Lib)
Data (Class Lib)

<Data Object Class Lib>
Customer
Contacts
Documents
Mails
</Data Object Class Lib>

I would create the Customer, Contacts, Documents and Mails
classes in a seperate library. These classes should be written so
that they can be used generically. Then you can easily just have
your other three classes work on these classes. This not only
helps you reduce duplicate code, but it will allow you to make
changes in your app easier later on.

Andrew Faust
Jul 21 '05 #2
Thanks for Andrew's quick response!

Hi MOJO,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need some suggestions on your CRM
project. If there is any misunderstanding, please feel free to let me know.

I used to develop CRM systems. Our architecture is just like the following:

Solution (solution)
CRM.Presentation (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)
CRM.Business (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)
CRM.Data (class library project)
General Data Access classes

The data access tier is a general tier, whose methods can be used by all
modules in the business logic tier. Because all the data access operations
are no more than select, insert, update and delete. We have some ready-made
application blocks for data access tier. For example: Data Access
Application Block for .NET from Micrsoft. It can be downloaded from the
following link:

http://msdn.microsoft.com/library/de...us/dnbda/html/
daab-rm.asp

The advantages for putting all modules together, is that we can enforce the
relationship of all the modules. For instance, we can easily get all the
contact names of a certain customer in business logic layer. And we can
also change presentation (like change winform to webform) just by changing
a certain DLL.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #3
Hi Andrew,

Thank you for giving me some input!!!

The "Data Object Class Lib" - isn't it supposed to be the business layer?

Thanks again.

M O J O

"Andrew Faust" <afaust@aradymeDOTcom> skrev i en meddelelse
news:uA**************@TK2MSFTNGP11.phx.gbl...

"M O J O" <mojo@_no_spam_delete_this_newwebsolutions.dk> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

I'm creating an CRM solution for my company.

I want to split up the solution into several classlibraries, so I dont
need to build the entire solution every time I run my project.

First I thought about splitting my application up into these libraries:

Solution (solution)
CRM.Business (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)
CRM.Presentation (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)
CRM.Data (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)

Then I thought about reversing it like....

Solution (solution)
Customer (class library project)
Business (classes)
Presentation (classes)
Data (classes)
Contacts (class library project)
Business (classes)
Presentation (classes)
Data (classes)
Documents (class library project)
Business (classes)
Presentation (classes)
Data (classes)
Mails (class library project)
Business (classes)
Presentation (classes)
Data (classes)

And then there's all this redundance to keep in mind.

How would you do it and why??

Is there some kind of best-practice? .... examples??


I wouldn't use either of these models. Instead I would do this:

Business (Class Lib)
Presentation (Class Lib)
Data (Class Lib)

<Data Object Class Lib>
Customer
Contacts
Documents
Mails
</Data Object Class Lib>

I would create the Customer, Contacts, Documents and Mails classes in a
seperate library. These classes should be written so that they can be used
generically. Then you can easily just have your other three classes work
on these classes. This not only helps you reduce duplicate code, but it
will allow you to make changes in your app easier later on.

Andrew Faust

Jul 21 '05 #4
Hi Kevin,

Thanks for helping me out here!

I'm a little confused here. You write "General Data Access Classes".
Shouldn't there forexample be a customer class in the data layer or is the
data layer only helper classes??

Correct me if I'm wrong .... I would like to create a new customer. The
presentation layer holds the forms and controls. The presentation layer
tells the business layers customer to create a new customer. The business
layer telsl the data layer the new customer values (fields). The data layer
creates the customer.

Aren't there some good vb.net 3tier examples "out there"? :o)

Thanks again.

M O J O

Ok ... if I want to create a new customer, my presentation layer should fill
in the business layer, which should
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> skrev i en meddelelse
news:n0**************@cpmsftngxa06.phx.gbl...
Thanks for Andrew's quick response!

Hi MOJO,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need some suggestions on your CRM
project. If there is any misunderstanding, please feel free to let me
know.

I used to develop CRM systems. Our architecture is just like the
following:

Solution (solution)
CRM.Presentation (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)
CRM.Business (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)
CRM.Data (class library project)
General Data Access classes

The data access tier is a general tier, whose methods can be used by all
modules in the business logic tier. Because all the data access operations
are no more than select, insert, update and delete. We have some
ready-made
application blocks for data access tier. For example: Data Access
Application Block for .NET from Micrsoft. It can be downloaded from the
following link:

http://msdn.microsoft.com/library/de...us/dnbda/html/
daab-rm.asp

The advantages for putting all modules together, is that we can enforce
the
relationship of all the modules. For instance, we can easily get all the
contact names of a certain customer in business logic layer. And we can
also change presentation (like change winform to webform) just by changing
a certain DLL.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #5
Hi again,

Is it ok for the presentation layer to use the data layer or should all data
communication go between the business layer and the data layer?

M O J O

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> skrev i en meddelelse
news:n0**************@cpmsftngxa06.phx.gbl...
Thanks for Andrew's quick response!

Hi MOJO,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need some suggestions on your CRM
project. If there is any misunderstanding, please feel free to let me
know.

I used to develop CRM systems. Our architecture is just like the
following:

Solution (solution)
CRM.Presentation (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)
CRM.Business (class library project)
Customer (classes)
Contacts (classes)
Documents (classes)
Mails (classes)
CRM.Data (class library project)
General Data Access classes

The data access tier is a general tier, whose methods can be used by all
modules in the business logic tier. Because all the data access operations
are no more than select, insert, update and delete. We have some
ready-made
application blocks for data access tier. For example: Data Access
Application Block for .NET from Micrsoft. It can be downloaded from the
following link:

http://msdn.microsoft.com/library/de...us/dnbda/html/
daab-rm.asp

The advantages for putting all modules together, is that we can enforce
the
relationship of all the modules. For instance, we can easily get all the
contact names of a certain customer in business logic layer. And we can
also change presentation (like change winform to webform) just by changing
a certain DLL.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #6
Hi MOJO,

Your understanding is correct. But we have to keep all tiers independent to
each other. So we have to prevent from mixing the business logic tier
things to the data access tier. Also, calling data access methods from
presentation tier has to be avoided. Thus, when we need to change some
features of the application, for example, I need to use an Oracle database
instead of SQL server, we just need to change a single tier. Other tiers
will not be affected and works fine as usual.

Here is an article about the architecture of Duwamish. It is a good example
in MSDN.
http://msdn.microsoft.com/library/de...us/dwamish7/ht
ml/vtoriArchitecturalOverview.asp

You can also check Pet Shop. It's also a good sample.
http://msdn.microsoft.com/library/de...us/dnbda/html/
petshop3x.asp

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #7
Hi Kevin,

Thank you for your examples. Duwamish seams to be doing what I'm looking
for.

Thanks again!

M O J O
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> skrev i en meddelelse
news:9r**************@cpmsftngxa06.phx.gbl...
Hi MOJO,

Your understanding is correct. But we have to keep all tiers independent
to
each other. So we have to prevent from mixing the business logic tier
things to the data access tier. Also, calling data access methods from
presentation tier has to be avoided. Thus, when we need to change some
features of the application, for example, I need to use an Oracle database
instead of SQL server, we just need to change a single tier. Other tiers
will not be affected and works fine as usual.

Here is an article about the architecture of Duwamish. It is a good
example
in MSDN.
http://msdn.microsoft.com/library/de...us/dwamish7/ht
ml/vtoriArchitecturalOverview.asp

You can also check Pet Shop. It's also a good sample.
http://msdn.microsoft.com/library/de...us/dnbda/html/
petshop3x.asp

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #8
Hi MOJO,

You're welcome. Thanks for sharing your experience with all the people
here. If you have any questions, please feel free to post them in the
community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Raaijmakers, Vincent (GE Infrastructure) | last post by:
What is the easiest way of getting this information out of a string: foo = "My number 70 is what I want to parse" => 70 foo = "My info {info} between the curly brackets is what I want to parse"...
24
by: sundew | last post by:
Hi all, I am developing an open source DHTML project named Wednus Window. http://wednus.com Wednus Window is a DHTML Web-Application Windowing System. It shell websites/web-applications with...
47
by: ship | last post by:
Hi We need some advice: We are thinking of upgrading our Access database from Access 2000 to Access 2004. How stable is MS Office 2003? (particularly Access 2003). We are just a small...
3
by: swingingming | last post by:
Hi, for 5 weeks, I finished my mdb project. Thanks to all you guys. Now, I would like to put it on a server then 5-6 people can share it. I heard about the splitting back-end database, put it on a...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
8
by: M O J O | last post by:
Hi, I'm creating an CRM solution for my company. I want to split up the solution into several classlibraries, so I dont need to build the entire solution every time I run my project. First...
20
by: Opettaja | last post by:
I am new to c# and I am currently trying to make a program to retrieve Battlefield 2 game stats from the gamespy servers. I have got it so I can retrieve the data but I do not know how to cut up...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
9
by: conspireagainst | last post by:
I'm having quite a time with this particular problem: I have users that enter tag words as form input, let's say for a photo or a topic of discussion. They are allowed to delimit tags with spaces...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.