Web Development

General discussion


How do you do n-tier in vb.net

By ErickTreetops ·
I have a simple question. It concerns how we are suppose to use vb.net
I?m trying to design an equipment hire application.

I want to use vb.net to create objects for both the equipment and the maintenance objects. These will be my middle business tier. These objects will talk through ado.net to the database to fill their properties and work any methods.

My first tier will be a windows GUI. It will simply do validation and the textboxes, comboxes etc will be used to set the properties of the EQUIPMENT object that will be instantiated in this assembly.

Here is my problem. All Microsoft examples and those by all the gurus out there link the textboxes and grids etc on a form straight to ado.net. i.e. from 1st tier straight to database. There is no middle business tier. Should the front end change from windows to a web all that code logic is mixed in with the forms. What happened to scalability? What is the point of having vb.net being object oriented if no one uses it the create business objects but links GUI?S straight to a database.

I?m not even sure you can bind a textbox or datagrid to an object you created yourself.

I can?t find any help from Microsoft to help me guide my development process. Is there any one out there who knows what is going on? Is there still a middle business tier in vb.net ?


This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

use the Binding classs

by fayyazpoonawala In reply to How do you do n-tier in v ...

U can use the binding class to create your own bindings with your custom objects. in the Visual Studio Help, look under System.Windows.Forms.Binding and then read the overview on Binding class.
hope it helps

Collapse -

On MSDN...

by todd In reply to How do you do n-tier in v ...

Hi Josef,
I found a paper on MSDN to be helpful:
Near the end there's a code example called "How to Bind Business Entity Components to User-Interface Controls"that I think is close to what you're decribing.
There's some pretty good papers at http://www.microsoft.com/resources/practices/completelist.asp which I've found to be much more helpful than the documentation at getting the "high-level" view.


Collapse -

Same problem in C#

by timd_da In reply to How do you do n-tier in v ...

I have been working on a C# distributed app, and run into the same problem. Frankly, a true three tiered app is awkward in the .NET world. I don't think they have quite gotten all of the pieces in place. Even the books with "Advanced" in the title are pretty basic. We spent over a month with MS trying to determine the best way to truly remote a business layer. Since our project lead did not want to use true interfaces as a means of exporting our classes (there are some reasons for this), we ended up maintaining separate public function files that we synchronize by hand with our implementation files.

Good luck.

Related Discussions

Related Forums