473,944 Members | 2,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

3-tier layers

Hello,

I try to understand how the business and presentation layers would
practically
translate into programming reality.
I read lots of articles about 3-tier, but none of them gave a practical
example
and I managed to understand the data layer only.
Is for example web services and their consumption an instance of n-tier,
covering the business and presentation layers?
If it is not necessary a WEB development how would the presentation and
business
layer come to life, through what? Is ASP the presentation layer and C# the
business layer?

Thanks a lot.
Apr 25 '06
25 2240
A web service is more of a service and the contract shouldn't change
much.

If you build a business layer as a web service and then need to change
the business object model, you'll force everyone that consumes your web
service to update thier code. The web service should just be an
interface to the business objects. That way your web services don't
necessarly need to change if you change the business logic.

Apr 26 '06 #11
So the solution is to create Class Library projects to keep the business
layer?
Sorry, I am new to C# too.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:OB******** ******@TK2MSFTN GP04.phx.gbl...
If you put your business logic into a Web Service, you have bound the API
for that business logic to a Web Service interface. The Web Service itself
is an interface, but not a programming interface, strictly. Not a good
idea, since there is latency involved, and severe restrictions on the
interface itself. Everything passed through it must be serialized as XML.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Thanks Kevin,
Couldn't be a WEB service considered a business layer as long as it is a
class with different methods and the application that makes a reference
becomes a presentation layer?
I can create a service on a separate server for example, where I can put
all the business logic in it, but it does not have a presentation until I
create an application on another server (that makes a reference to the
service) which uses controls for the user input.
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:Ox******** ******@TK2MSFTN GP02.phx.gbl...
A Web Service is an interface. It is a form of presentation tier. It
exposes the API of a set of business classes. A Business tier is a set of
classes. A DLL is a container for code. A COM object isn't even .Net. A
Data Tier is also a set of classes. The classes can reside in one or more
assemblies . An assembly is stored in one or more DLLs.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:Oy******** ******@TK2MSFTN GP05.phx.gbl...
Thanks for replying,
I was looking more for a description of how the business layer can be
expressed: a DLL,
a COM object, a WEB service?
Theoretically I understand the concept, but the practical side is
difficult for me to grab.
As I see it WEB services would solve the business layer, but what's
used when the application is Windows based?

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:OV******** ******@TK2MSFTN GP03.phx.gbl...
> The 3-tier model is based upon separation of general functionality.
> You have 3 tiers:
>
> Interface
> Business
> Data
>
> Each tier is more specific than the one below.
>
> The Data Tier is only for working with underlying data stores. It
> knows nothing of specific business rules about how to handle the data.
> It only knows how to fetch it, change it, delete it, that sort of
> thing. It is a programming interface to the data that any application
> stores. As such, it is agnostic of any rules concerning what the data
> is, or how it is to be treated. It is the "supply clerk" of the
> organization. This way it can be used by many applications.
>
> The Business Tier is for manipulating the data. It contains the
> Business logic and Business rules that comprise the "engine" of an
> application. It knows everything about the Data Tier, while the Data
> Tier knows nothing about the Business Tier. The Business Tier works
> with Data, but does nothing to expose it to a user. It does expose
> what is necessary for any other component or application to be able to
> work with the data, and is in charge of making sure that everything is
> handled according to the Business rules. It has a programming
> interface, but no user interface. This way, the functionality of the
> Business tier can be used in many different types of interfaces.
>
> The User Interface is the most specific. It knows nothing about the
> Data Tier; that is the Business Tier's job. It knows everything about
> the exposed API of the Business tier, and its job is to present the
> data to the user, and to take input from the User and relay it to the
> Business Tier. It is a "universal translator" for the application,
> which speaks human at one end, and business API at the other.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> Professional Numbskull
>
> Hard work is a medication for which
> there is no placebo.
>
> "Dan Aldean" <da*******@yaho o.com> wrote in message
> news:ua******** ******@TK2MSFTN GP04.phx.gbl...
>> Hello,
>>
>> I try to understand how the business and presentation layers would
>> practically
>> translate into programming reality.
>> I read lots of articles about 3-tier, but none of them gave a
>> practical example
>> and I managed to understand the data layer only.
>> Is for example web services and their consumption an instance of
>> n-tier,
>> covering the business and presentation layers?
>> If it is not necessary a WEB development how would the presentation
>> and business
>> layer come to life, through what? Is ASP the presentation layer and
>> C# the business layer?
>>
>> Thanks a lot.
>>
>
>



Apr 26 '06 #12
Yes, business classes would be in class libraries.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:e2******** ******@TK2MSFTN GP04.phx.gbl...
So the solution is to create Class Library projects to keep the business
layer?
Sorry, I am new to C# too.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:OB******** ******@TK2MSFTN GP04.phx.gbl...
If you put your business logic into a Web Service, you have bound the API
for that business logic to a Web Service interface. The Web Service
itself is an interface, but not a programming interface, strictly. Not a
good idea, since there is latency involved, and severe restrictions on
the interface itself. Everything passed through it must be serialized as
XML.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Thanks Kevin,
Couldn't be a WEB service considered a business layer as long as it is a
class with different methods and the application that makes a reference
becomes a presentation layer?
I can create a service on a separate server for example, where I can put
all the business logic in it, but it does not have a presentation until
I create an application on another server (that makes a reference to the
service) which uses controls for the user input.
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:Ox******** ******@TK2MSFTN GP02.phx.gbl...
A Web Service is an interface. It is a form of presentation tier. It
exposes the API of a set of business classes. A Business tier is a set
of classes. A DLL is a container for code. A COM object isn't even .Net.
A Data Tier is also a set of classes. The classes can reside in one or
more assemblies. An assembly is stored in one or more DLLs.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:Oy******** ******@TK2MSFTN GP05.phx.gbl...
> Thanks for replying,
> I was looking more for a description of how the business layer can be
> expressed: a DLL,
> a COM object, a WEB service?
> Theoretically I understand the concept, but the practical side is
> difficult for me to grab.
> As I see it WEB services would solve the business layer, but what's
> used when the application is Windows based?
>
> "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
> news:OV******** ******@TK2MSFTN GP03.phx.gbl...
>> The 3-tier model is based upon separation of general functionality.
>> You have 3 tiers:
>>
>> Interface
>> Business
>> Data
>>
>> Each tier is more specific than the one below.
>>
>> The Data Tier is only for working with underlying data stores. It
>> knows nothing of specific business rules about how to handle the
>> data. It only knows how to fetch it, change it, delete it, that sort
>> of thing. It is a programming interface to the data that any
>> application stores. As such, it is agnostic of any rules concerning
>> what the data is, or how it is to be treated. It is the "supply
>> clerk" of the organization. This way it can be used by many
>> applications.
>>
>> The Business Tier is for manipulating the data. It contains the
>> Business logic and Business rules that comprise the "engine" of an
>> application. It knows everything about the Data Tier, while the Data
>> Tier knows nothing about the Business Tier. The Business Tier works
>> with Data, but does nothing to expose it to a user. It does expose
>> what is necessary for any other component or application to be able
>> to work with the data, and is in charge of making sure that
>> everything is handled according to the Business rules. It has a
>> programming interface, but no user interface. This way, the
>> functionality of the Business tier can be used in many different
>> types of interfaces.
>>
>> The User Interface is the most specific. It knows nothing about the
>> Data Tier; that is the Business Tier's job. It knows everything about
>> the exposed API of the Business tier, and its job is to present the
>> data to the user, and to take input from the User and relay it to the
>> Business Tier. It is a "universal translator" for the application,
>> which speaks human at one end, and business API at the other.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> Professional Numbskull
>>
>> Hard work is a medication for which
>> there is no placebo.
>>
>> "Dan Aldean" <da*******@yaho o.com> wrote in message
>> news:ua******** ******@TK2MSFTN GP04.phx.gbl...
>>> Hello,
>>>
>>> I try to understand how the business and presentation layers would
>>> practically
>>> translate into programming reality.
>>> I read lots of articles about 3-tier, but none of them gave a
>>> practical example
>>> and I managed to understand the data layer only.
>>> Is for example web services and their consumption an instance of
>>> n-tier,
>>> covering the business and presentation layers?
>>> If it is not necessary a WEB development how would the presentation
>>> and business
>>> layer come to life, through what? Is ASP the presentation layer and
>>> C# the business layer?
>>>
>>> Thanks a lot.
>>>
>>
>>
>
>



Apr 26 '06 #13
Yup.

There's a great book which builds a framework for business objects to
help promote proper seperation of tiers.

Pick up a copy of Expert C# 2005 Business Objects by Rockford Lhotka,
published by APress.

HTH
Andy

Apr 26 '06 #14
Thanks.
I just created a shared assembly in a Class Library.
I used the sn -k obj\release\MyS hared.snk to create a signature.
Then I used the MyShared.snk in the AssemblyInfo.cs file, in the
[assembly: AssemblyKeyFile ("MyShared.s nk ")]

section. Then I Rebuilt the solution. Next step was to install the assembly
using

gacutil /i MyShared.dll.

What would be next? I tried to create another project and then use the
reference to

find the MyShared.dll in there but it isn't. What did I do wrong?

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:uc******** *****@TK2MSFTNG P02.phx.gbl...
Yes, business classes would be in class libraries.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:e2******** ******@TK2MSFTN GP04.phx.gbl...
So the solution is to create Class Library projects to keep the business
layer?
Sorry, I am new to C# too.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:OB******** ******@TK2MSFTN GP04.phx.gbl...
If you put your business logic into a Web Service, you have bound the
API for that business logic to a Web Service interface. The Web Service
itself is an interface, but not a programming interface, strictly. Not a
good idea, since there is latency involved, and severe restrictions on
the interface itself. Everything passed through it must be serialized as
XML.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Thanks Kevin,
Couldn't be a WEB service considered a business layer as long as it is
a class with different methods and the application that makes a
reference becomes a presentation layer?
I can create a service on a separate server for example, where I can
put all the business logic in it, but it does not have a presentation
until I create an application on another server (that makes a reference
to the service) which uses controls for the user input.
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:Ox******** ******@TK2MSFTN GP02.phx.gbl...
>A Web Service is an interface. It is a form of presentation tier. It
>exposes the API of a set of business classes. A Business tier is a set
>of classes. A DLL is a container for code. A COM object isn't even
>.Net. A Data Tier is also a set of classes. The classes can reside in
>one or more assemblies. An assembly is stored in one or more DLLs.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> Professional Numbskull
>
> Hard work is a medication for which
> there is no placebo.
>
> "Dan Aldean" <da*******@yaho o.com> wrote in message
> news:Oy******** ******@TK2MSFTN GP05.phx.gbl...
>> Thanks for replying,
>> I was looking more for a description of how the business layer can be
>> expressed: a DLL,
>> a COM object, a WEB service?
>> Theoretically I understand the concept, but the practical side is
>> difficult for me to grab.
>> As I see it WEB services would solve the business layer, but what's
>> used when the application is Windows based?
>>
>> "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
>> news:OV******** ******@TK2MSFTN GP03.phx.gbl...
>>> The 3-tier model is based upon separation of general functionality.
>>> You have 3 tiers:
>>>
>>> Interface
>>> Business
>>> Data
>>>
>>> Each tier is more specific than the one below.
>>>
>>> The Data Tier is only for working with underlying data stores. It
>>> knows nothing of specific business rules about how to handle the
>>> data. It only knows how to fetch it, change it, delete it, that sort
>>> of thing. It is a programming interface to the data that any
>>> application stores. As such, it is agnostic of any rules concerning
>>> what the data is, or how it is to be treated. It is the "supply
>>> clerk" of the organization. This way it can be used by many
>>> applications.
>>>
>>> The Business Tier is for manipulating the data. It contains the
>>> Business logic and Business rules that comprise the "engine" of an
>>> application. It knows everything about the Data Tier, while the Data
>>> Tier knows nothing about the Business Tier. The Business Tier works
>>> with Data, but does nothing to expose it to a user. It does expose
>>> what is necessary for any other component or application to be able
>>> to work with the data, and is in charge of making sure that
>>> everything is handled according to the Business rules. It has a
>>> programming interface, but no user interface. This way, the
>>> functionality of the Business tier can be used in many different
>>> types of interfaces.
>>>
>>> The User Interface is the most specific. It knows nothing about the
>>> Data Tier; that is the Business Tier's job. It knows everything
>>> about the exposed API of the Business tier, and its job is to
>>> present the data to the user, and to take input from the User and
>>> relay it to the Business Tier. It is a "universal translator" for
>>> the application, which speaks human at one end, and business API at
>>> the other.
>>>
>>> --
>>> HTH,
>>>
>>> Kevin Spencer
>>> Microsoft MVP
>>> Professional Numbskull
>>>
>>> Hard work is a medication for which
>>> there is no placebo.
>>>
>>> "Dan Aldean" <da*******@yaho o.com> wrote in message
>>> news:ua******** ******@TK2MSFTN GP04.phx.gbl...
>>>> Hello,
>>>>
>>>> I try to understand how the business and presentation layers would
>>>> practically
>>>> translate into programming reality.
>>>> I read lots of articles about 3-tier, but none of them gave a
>>>> practical example
>>>> and I managed to understand the data layer only.
>>>> Is for example web services and their consumption an instance of
>>>> n-tier,
>>>> covering the business and presentation layers?
>>>> If it is not necessary a WEB development how would the presentation
>>>> and business
>>>> layer come to life, through what? Is ASP the presentation layer
>>>> and C# the business layer?
>>>>
>>>> Thanks a lot.
>>>>
>>>
>>>
>>
>>
>
>



Apr 26 '06 #15
Well, to start with, you didn't need to create a shared assembly. You didn't
need to create a Strong Name for the assembly. You didn't need to install it
in the GAC.

Create a project for your business class library. Don't change any settings,
just use the default template that Visual Studio provides. It is the default
because it is the typical way that class libaries are made. When you need to
use the Business class in another project, add the project to that solution.
You can add the same project to any number of solutions. Then create a
reference to the project is the other project. Bob's your uncle.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:ex******** *****@TK2MSFTNG P02.phx.gbl...
Thanks.
I just created a shared assembly in a Class Library.
I used the sn -k obj\release\MyS hared.snk to create a signature.
Then I used the MyShared.snk in the AssemblyInfo.cs file, in the
[assembly: AssemblyKeyFile ("MyShared.s nk ")]

section. Then I Rebuilt the solution. Next step was to install the
assembly using

gacutil /i MyShared.dll.

What would be next? I tried to create another project and then use the
reference to

find the MyShared.dll in there but it isn't. What did I do wrong?

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:uc******** *****@TK2MSFTNG P02.phx.gbl...
Yes, business classes would be in class libraries.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:e2******** ******@TK2MSFTN GP04.phx.gbl...
So the solution is to create Class Library projects to keep the business
layer?
Sorry, I am new to C# too.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:OB******** ******@TK2MSFTN GP04.phx.gbl...
If you put your business logic into a Web Service, you have bound the
API for that business logic to a Web Service interface. The Web Service
itself is an interface, but not a programming interface, strictly. Not
a good idea, since there is latency involved, and severe restrictions
on the interface itself. Everything passed through it must be
serialized as XML.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
> Thanks Kevin,
> Couldn't be a WEB service considered a business layer as long as it is
> a class with different methods and the application that makes a
> reference becomes a presentation layer?
> I can create a service on a separate server for example, where I can
> put all the business logic in it, but it does not have a presentation
> until I create an application on another server (that makes a
> reference to the service) which uses controls for the user input.
>
>
> "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
> news:Ox******** ******@TK2MSFTN GP02.phx.gbl...
>>A Web Service is an interface. It is a form of presentation tier. It
>>exposes the API of a set of business classes. A Business tier is a set
>>of classes. A DLL is a container for code. A COM object isn't even
>>.Net. A Data Tier is also a set of classes. The classes can reside in
>>one or more assemblies. An assembly is stored in one or more DLLs.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> Professional Numbskull
>>
>> Hard work is a medication for which
>> there is no placebo.
>>
>> "Dan Aldean" <da*******@yaho o.com> wrote in message
>> news:Oy******** ******@TK2MSFTN GP05.phx.gbl...
>>> Thanks for replying,
>>> I was looking more for a description of how the business layer can
>>> be expressed: a DLL,
>>> a COM object, a WEB service?
>>> Theoretically I understand the concept, but the practical side is
>>> difficult for me to grab.
>>> As I see it WEB services would solve the business layer, but what's
>>> used when the application is Windows based?
>>>
>>> "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
>>> news:OV******** ******@TK2MSFTN GP03.phx.gbl...
>>>> The 3-tier model is based upon separation of general functionality.
>>>> You have 3 tiers:
>>>>
>>>> Interface
>>>> Business
>>>> Data
>>>>
>>>> Each tier is more specific than the one below.
>>>>
>>>> The Data Tier is only for working with underlying data stores. It
>>>> knows nothing of specific business rules about how to handle the
>>>> data. It only knows how to fetch it, change it, delete it, that
>>>> sort of thing. It is a programming interface to the data that any
>>>> application stores. As such, it is agnostic of any rules concerning
>>>> what the data is, or how it is to be treated. It is the "supply
>>>> clerk" of the organization. This way it can be used by many
>>>> applications.
>>>>
>>>> The Business Tier is for manipulating the data. It contains the
>>>> Business logic and Business rules that comprise the "engine" of an
>>>> application. It knows everything about the Data Tier, while the
>>>> Data Tier knows nothing about the Business Tier. The Business Tier
>>>> works with Data, but does nothing to expose it to a user. It does
>>>> expose what is necessary for any other component or application to
>>>> be able to work with the data, and is in charge of making sure that
>>>> everything is handled according to the Business rules. It has a
>>>> programming interface, but no user interface. This way, the
>>>> functionality of the Business tier can be used in many different
>>>> types of interfaces.
>>>>
>>>> The User Interface is the most specific. It knows nothing about the
>>>> Data Tier; that is the Business Tier's job. It knows everything
>>>> about the exposed API of the Business tier, and its job is to
>>>> present the data to the user, and to take input from the User and
>>>> relay it to the Business Tier. It is a "universal translator" for
>>>> the application, which speaks human at one end, and business API at
>>>> the other.
>>>>
>>>> --
>>>> HTH,
>>>>
>>>> Kevin Spencer
>>>> Microsoft MVP
>>>> Professional Numbskull
>>>>
>>>> Hard work is a medication for which
>>>> there is no placebo.
>>>>
>>>> "Dan Aldean" <da*******@yaho o.com> wrote in message
>>>> news:ua******** ******@TK2MSFTN GP04.phx.gbl...
>>>>> Hello,
>>>>>
>>>>> I try to understand how the business and presentation layers would
>>>>> practically
>>>>> translate into programming reality.
>>>>> I read lots of articles about 3-tier, but none of them gave a
>>>>> practical example
>>>>> and I managed to understand the data layer only.
>>>>> Is for example web services and their consumption an instance of
>>>>> n-tier,
>>>>> covering the business and presentation layers?
>>>>> If it is not necessary a WEB development how would the
>>>>> presentation and business
>>>>> layer come to life, through what? Is ASP the presentation layer
>>>>> and C# the business layer?
>>>>>
>>>>> Thanks a lot.
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Apr 26 '06 #16
Thanks a lot
When do I need it in GAC?

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:uh******** *****@TK2MSFTNG P05.phx.gbl...
Well, to start with, you didn't need to create a shared assembly. You
didn't need to create a Strong Name for the assembly. You didn't need to
install it in the GAC.

Create a project for your business class library. Don't change any
settings, just use the default template that Visual Studio provides. It is
the default because it is the typical way that class libaries are made.
When you need to use the Business class in another project, add the
project to that solution. You can add the same project to any number of
solutions. Then create a reference to the project is the other project.
Bob's your uncle.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:ex******** *****@TK2MSFTNG P02.phx.gbl...
Thanks.
I just created a shared assembly in a Class Library.
I used the sn -k obj\release\MyS hared.snk to create a signature.
Then I used the MyShared.snk in the AssemblyInfo.cs file, in the
[assembly: AssemblyKeyFile ("MyShared.s nk ")]

section. Then I Rebuilt the solution. Next step was to install the
assembly using

gacutil /i MyShared.dll.

What would be next? I tried to create another project and then use the
reference to

find the MyShared.dll in there but it isn't. What did I do wrong?

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:uc******** *****@TK2MSFTNG P02.phx.gbl...
Yes, business classes would be in class libraries.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:e2******** ******@TK2MSFTN GP04.phx.gbl...
So the solution is to create Class Library projects to keep the
business layer?
Sorry, I am new to C# too.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:OB******** ******@TK2MSFTN GP04.phx.gbl...
> If you put your business logic into a Web Service, you have bound the
> API for that business logic to a Web Service interface. The Web
> Service itself is an interface, but not a programming interface,
> strictly. Not a good idea, since there is latency involved, and severe
> restrictions on the interface itself. Everything passed through it
> must be serialized as XML.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> Professional Numbskull
>
> Hard work is a medication for which
> there is no placebo.
>
> "Dan Aldean" <da*******@yaho o.com> wrote in message
> news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
>> Thanks Kevin,
>> Couldn't be a WEB service considered a business layer as long as it
>> is a class with different methods and the application that makes a
>> reference becomes a presentation layer?
>> I can create a service on a separate server for example, where I can
>> put all the business logic in it, but it does not have a presentation
>> until I create an application on another server (that makes a
>> reference to the service) which uses controls for the user input.
>>
>>
>> "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
>> news:Ox******** ******@TK2MSFTN GP02.phx.gbl...
>>>A Web Service is an interface. It is a form of presentation tier. It
>>>expose s the API of a set of business classes. A Business tier is a
>>>set of classes. A DLL is a container for code. A COM object isn't
>>>even .Net. A Data Tier is also a set of classes. The classes can
>>>reside in one or more assemblies. An assembly is stored in one or
>>>more DLLs.
>>>
>>> --
>>> HTH,
>>>
>>> Kevin Spencer
>>> Microsoft MVP
>>> Professional Numbskull
>>>
>>> Hard work is a medication for which
>>> there is no placebo.
>>>
>>> "Dan Aldean" <da*******@yaho o.com> wrote in message
>>> news:Oy******** ******@TK2MSFTN GP05.phx.gbl...
>>>> Thanks for replying,
>>>> I was looking more for a description of how the business layer can
>>>> be expressed: a DLL,
>>>> a COM object, a WEB service?
>>>> Theoretically I understand the concept, but the practical side is
>>>> difficult for me to grab.
>>>> As I see it WEB services would solve the business layer, but what's
>>>> used when the application is Windows based?
>>>>
>>>> "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
>>>> news:OV******** ******@TK2MSFTN GP03.phx.gbl...
>>>>> The 3-tier model is based upon separation of general
>>>>> functionality. You have 3 tiers:
>>>>>
>>>>> Interface
>>>>> Business
>>>>> Data
>>>>>
>>>>> Each tier is more specific than the one below.
>>>>>
>>>>> The Data Tier is only for working with underlying data stores. It
>>>>> knows nothing of specific business rules about how to handle the
>>>>> data. It only knows how to fetch it, change it, delete it, that
>>>>> sort of thing. It is a programming interface to the data that any
>>>>> application stores. As such, it is agnostic of any rules
>>>>> concerning what the data is, or how it is to be treated. It is the
>>>>> "supply clerk" of the organization. This way it can be used by
>>>>> many applications.
>>>>>
>>>>> The Business Tier is for manipulating the data. It contains the
>>>>> Business logic and Business rules that comprise the "engine" of an
>>>>> application. It knows everything about the Data Tier, while the
>>>>> Data Tier knows nothing about the Business Tier. The Business Tier
>>>>> works with Data, but does nothing to expose it to a user. It does
>>>>> expose what is necessary for any other component or application to
>>>>> be able to work with the data, and is in charge of making sure
>>>>> that everything is handled according to the Business rules. It has
>>>>> a programming interface, but no user interface. This way, the
>>>>> functionality of the Business tier can be used in many different
>>>>> types of interfaces.
>>>>>
>>>>> The User Interface is the most specific. It knows nothing about
>>>>> the Data Tier; that is the Business Tier's job. It knows
>>>>> everything about the exposed API of the Business tier, and its job
>>>>> is to present the data to the user, and to take input from the
>>>>> User and relay it to the Business Tier. It is a "universal
>>>>> translator" for the application, which speaks human at one end,
>>>>> and business API at the other.
>>>>>
>>>>> --
>>>>> HTH,
>>>>>
>>>>> Kevin Spencer
>>>>> Microsoft MVP
>>>>> Professional Numbskull
>>>>>
>>>>> Hard work is a medication for which
>>>>> there is no placebo.
>>>>>
>>>>> "Dan Aldean" <da*******@yaho o.com> wrote in message
>>>>> news:ua******** ******@TK2MSFTN GP04.phx.gbl...
>>>>>> Hello,
>>>>>>
>>>>>> I try to understand how the business and presentation layers
>>>>>> would practically
>>>>>> translate into programming reality.
>>>>>> I read lots of articles about 3-tier, but none of them gave a
>>>>>> practical example
>>>>>> and I managed to understand the data layer only.
>>>>>> Is for example web services and their consumption an instance of
>>>>>> n-tier,
>>>>>> covering the business and presentation layers?
>>>>>> If it is not necessary a WEB development how would the
>>>>>> presentation and business
>>>>>> layer come to life, through what? Is ASP the presentation layer
>>>>>> and C# the business layer?
>>>>>>
>>>>>> Thanks a lot.
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Apr 26 '06 #17
Most likely never. The GAC is really for assemblies that would be
shared across many applications.

I'd say just pretend installing to the GAC isn't even an option. Thats
the standard way to use libraries.

Apr 26 '06 #18
Thanks Andy.
In my situation when I registered my class in GAC, how can I make it visible
to another application?
"Andy" <aj*****@alum.r it.edu> wrote in message
news:11******** **************@ v46g2000cwv.goo glegroups.com.. .
Most likely never. The GAC is really for assemblies that would be
shared across many applications.

I'd say just pretend installing to the GAC isn't even an option. Thats
the standard way to use libraries.

Apr 26 '06 #19
That would be done by modifying the system registry.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Dan Aldean" <da*******@yaho o.com> wrote in message
news:OC******** ********@TK2MSF TNGP03.phx.gbl. ..
Thanks Andy.
In my situation when I registered my class in GAC, how can I make it
visible to another application?
"Andy" <aj*****@alum.r it.edu> wrote in message
news:11******** **************@ v46g2000cwv.goo glegroups.com.. .
Most likely never. The GAC is really for assemblies that would be
shared across many applications.

I'd say just pretend installing to the GAC isn't even an option. Thats
the standard way to use libraries.


Apr 26 '06 #20

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

Similar topics

1
2824
by: Lizzy | last post by:
I have an internet application which has a progress bar show whenever the customer is requesting data from the server. This progress bar is coded to work in both Netscape 4.75 and above and IE 5.0 and above. The progress bar code is written in javascript in an external js file (progressbar.js). The web screen is in a seperate jsp file (Registration.jsp). The problem I'm having is that the progress bar is not showing in Netscape 4.75 on a...
1
1794
by: Chris Leonard | last post by:
Hi. Can anyone help me please. If the syntax for IE is: document.getElementById(layerID) What if I want to use layers ? document.layers ?????????
6
6853
by: David List | last post by:
I'm having a problem using different properties of the document object in the example javascripts in my textbook with browsers that identify themselves as using the Mozilla engine. One example of these problems is using document.layers. I have Google'd for examples of how to use the document object specifically with Mozilla, but I cannot find anything that explains why my problems occur. Could anyone here see through the included example...
8
11110
by: Freek te Water | last post by:
Hi, Hope no-one is offended by my probably noob question... Context: I have a web page design, which always centres in the middle of the screen (using a 100%*100% HTML-table). Now I also use layers, that get visible when something is clicked. All works fine. Problem:
4
3817
by: ashkaan57 | last post by:
Hi, I am using the following code to show/hide part of an html page. It works in Netscape and Firefox but dies in IE: "Error: document.layers is null or not an object" <style> ..noshow { display: none; } ..menu {
5
2674
by: evanburen | last post by:
I have a set of 10 div layers on a page that each contain dynamic content pulled from a database so the size of the div layers is not static. Each layer can be viewed or hidden by checking checkboxes at the top of the page. The problem I'm having is that if the user wants to view only div layers 8-10, I have a lot of dead space in the page where div layers 1-7 are on the page but not visible in the browser. How do I arrange these div...
2
956
by: riga | last post by:
Hi, I was given an ASP.NET (C#) application to modify. The code looks really strange. It's supposed to do simple things but it has Facade/BusinessRules/Common/DataAccess layers. For example, simple method in Navigate.ascx.cs is instantiating a new object and calls obj1.COBdateInit(). obj1 does exactly the same thing. It call obj2.COBDateInit()
10
10984
by: Joey_Stacks | last post by:
Does anyone know of a scipt that will rotate random div layers on page refresh? I have a primary content area front and center on my site homepage, and I'd like to rotate various chunks of html (in div layers) each time a user reloads the page. Right now I'm resorting to a random image rotation (those scripts are a dime a dozen) on refresh, but it's far from ideal for what I'm trying to accomplish. Any help on this would be GREATLY...
5
2388
by: Burt | last post by:
There's an architect at my 200 person company that advocates having many layers in all my C# apps. He wants web services, use case handlers, facade layers, data gateways, etc. When I ask why all this complexity is necessary, he gives me what if scenarios: "What if you ever want to access the business logic with another front end?", for example. These are typical "intranet apps"...one or more screens selecting and updating rows in a...
1
5591
by: Grimm | last post by:
I am developing an internalk inteface that integrates alot of seperate tools into one interface. The current version uses one Iframe inside a div layer for positioning. Currently the seperate web tools do not have the ability to stay active. As you switch from tool to tool the previous information is lost unless you use a Back button. I need to place multiple div layers with I frames in them that can be shown or hidden based on selection. The...
0
10147
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11136
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11310
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10677
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9870
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8238
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7399
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6315
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3520
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.