You do this by creating a new Project (class library)
for each layer that you need. If you have 3 layers
then you will need 3 class libraries (3 .dlls).
A typical 3-5 layer application will look like this:
YourApp.Business.dll
YourApp.BusinessEntities.dll
YourApp.DalSql.dll
YourApp.Gui.WinForms.exe
YourApp.Gui.ASPnet.exe
Very clean seperation,
all code for Biz Logic is in Business.dll, etc.
In this case there are two UI programs,
they both can use the supporting .dlls. You
do this by adding a reference to the .dlls
needed in the .exe projects.
As for business entity layer you can
use either datasets *or* custom business
objects (c# classes). Datasets are easier
but classes are much more powerful.
Russell Mangel
Las Vegas, NV
This book is very good, it is slanted towards datasets, but does have
considerable information on Custom Business Objects.
Brian does an excellant job explaining how to build a layered application.
Data Binding with Windows Forms 2.0: Programming Smart Client Data
Applications with .NET (Microsoft Net Development Series)
by Brian Noyes
http://www.amazon.com/Data-Binding-W...e=UTF8&s=books
Another good resource for Custom Business Objects is: (no datasets).
Expert C# 2005 Business Objects, Second Edition by Rockford Lhotka
http://www.amazon.com/Expert-2005-Bu...e=UTF8&s=books