473,396 Members | 1,961 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,396 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 1536

"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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.