General discussion

  • Creator
  • #2306658

    How do you do n-tier in


    by ericktreetops ·

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

    I want to use to create objects for both the equipment and the maintenance objects. These will be my middle business tier. These objects will talk through 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 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 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 ?


All Comments

  • Author
    • #3371710

      use the Binding classs

      by fayyazpoonawala ·

      In reply to How do you do n-tier in

      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

    • #3355446

      On MSDN…

      by todd ·

      In reply to How do you do n-tier in

      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 which I’ve found to be much more helpful than the documentation at getting the “high-level” view.


    • #3354213

      Same problem in C#

      by timd_da ·

      In reply to How do you do n-tier in

      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.

Viewing 2 reply threads