473,473 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Can we seperate the Bussiness Logic and User Interface?

I'm going to build a project which contain the business logic only, and it
should be device independent. And I'll have different program to build the
UI in for different platform using the same library of business logic.

I have created a solution to contain projects for different device (Windows
and SmartDevice), however, I cannot cretae a project for the business logic
which can be shared for different platform. It seems that VisualStudio does
not support the idea of seperating the Business Logic from UI, all project in
Visual Studio are device dependent.

May I know if there has any alternative that I can have a single source for
bussiness logic, and share the source for different platform?

Jun 16 '06 #1
2 1425

"James MA" <Ja*****@discussions.microsoft.com> wrote in message
news:E8**********************************@microsof t.com...
I'm going to build a project which contain the business logic only, and it
should be device independent. And I'll have different program to build
the
UI in for different platform using the same library of business logic.

I have created a solution to contain projects for different device
(Windows
and SmartDevice), however, I cannot cretae a project for the business
logic
which can be shared for different platform. It seems that VisualStudio
does
not support the idea of seperating the Business Logic from UI, all project
in
Visual Studio are device dependent.

May I know if there has any alternative that I can have a single source
for
bussiness logic, and share the source for different platform?


You can, however, share source code files between projects. On a project go
to Add/Existing Item and look toggle the "Add" button to "Add as link".

David

Jun 16 '06 #2
Encapsulate your business logic into Class libraries and use those entites
in your presentation/UI tier. This way, the UI layer talks to the BO tier.
The BO tier talks to the data tier. The UI should never talk directly to
the data tier in this architecture. Of course, you can't just use the wizards
and follow the simple samples to build a robust, re-usable architecture.
You may want to look at Rocky Lhotka's books for Business Objects as one
example of what you can do.

Jim Wooley
http://devauthority.com/blogs/jwooley/default.aspx
I'm going to build a project which contain the business logic only,
and it should be device independent. And I'll have different program
to build the UI in for different platform using the same library of
business logic.

I have created a solution to contain projects for different device
(Windows and SmartDevice), however, I cannot cretae a project for the
business logic which can be shared for different platform. It seems
that VisualStudio does not support the idea of seperating the Business
Logic from UI, all project in Visual Studio are device dependent.

May I know if there has any alternative that I can have a single
source for bussiness logic, and share the source for different
platform?

Jun 19 '06 #3

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

Similar topics

12
by: Brian Keating EI9FXB | last post by:
Hello all, Wonder what approach is used for this problem. I have a MDIApplication, the MDIClinets are to be in a seperate thread. So I've done something like this, // Create a new Show...
4
by: randy1200 | last post by:
I have a WinForm class that has accumulated a tremendous amount of logic code. Can anyone point me toward a good article on factoring logic code out of a WinForm class? Thanks, -- Randy
16
by: MS newsgroup | last post by:
I don't have clear reasons why we need business logic layer and data logic layer instead of having only data logic layer. Are there any good reasons for that?
6
by: Relaxin | last post by:
I'm coming from Borland C++ and am "somewhat" new to C#, but very seasoned in C++. I'm looking for a specific feature that Borland had that I can't seem to find in C#. In Borland that feature...
2
by: moondaddy | last post by:
asp.net 2.0 I have a page with a tab control on it. Each tab has a different user control on it. each user control is used for different data entry (like separate data entry forms) and has its...
14
by: rabbitrun | last post by:
Hi Everyone, I work for a financial company. I am planning to give a presentation to rest of the development team (15 people) here on moving server side logic to client-side javascript for an...
2
by: Chris Zopers | last post by:
Hello, I would like to know what's the best way to implement a business logic layer between my user interface and my database. I would say I'd make a dll-project for the business logic layer...
9
by: SAL | last post by:
Hello, I have a Dataset that I have table adapters in I designed using the designer (DataLayer). I have a business logic layer that immulates the DataLayer which may/may not have additional logic...
1
by: crs27 | last post by:
Hai, I would like to know if i can include bussiness logic in Trigger. For Example: On a insert/update on a table(primary) i want to insert values to other table(secondary). A insert is...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.