![]() |
| ||
| How to build the correct way of n-tier apps without service and remoting? Sorry if my thread is place in incorrect forum. Hai All ... Could anybody help me? i'm praticing how to build the n'tier application. I have read some book tell about this, like "Building Client/Server Applications With VB.NET" by Jeff Levinson, beth massi video tutorial "building simple n-tier applications", and other else. In my practice, i create 3 projects to handle each layer progress. That are DAL (Data Access Layer), BLL(Business Logic Layer) and UIL (User Interface Layer). My problem is i don't want to use web service like beth massi do, and i don't want to use remote object like Jeff L do. So i decide to create it by my rules. Here above something that i do. In DAL Section, I put all datasource like Beth Massi do over here. I also create a manager class like massi do to handle datasource over here. Also in this class, i create the UML structure of this datasource. 'SatuanManager.vb In BLL Section, the dataset which i put in DAL Section auto generate over this section. I also create two class again in this section. There are Interfaces class and Structures class. 'Interfaces.vb 'Structures.vb In BLL Section, I build user form over here. Over this user form i create a datagridview to show the dataset rows. 'UI_Form.vb And Here above my complete source : myN-Tier am i build a correct way of n-tier applications? where should i place user interface presentation? where should i place that uml object? thank's |
| ||
| Re: How to build the correct way of n-tier apps without service and remoting? My answer may appear a little far from your question, but here how I look to it. In every applications we all write these layers are exist, but they were all exist in one place. Suppose you create a form which include one textbox and save button, in the save button there is an insertion to the information written in the textbox after validation. The good N-Tire is where you can reduce time and coding for your entire solution (not your single application). The "N" is Unknown number of layer that may exist to help build a good architecture design. where you can re-use what you have build in this application in another application even with another programming language. I divide the project in 3 parts, - Form Controls (Button, ListBox, etc...) - Data handling (connecting, handling, data validating) - Common Functions In form design I mean subclassing of each form control using usercontrol and if necessary build an .ocx from it where I can use in other programming language. If I need to change the back color of textbox, I don't need to open each form and change the color of the textbox, I simply change it in one place in the usercontrol. In data handling, I create a class for each database back-end I use, and I use this class whenever I am developing. Here is a sample Public Class MySQL Common function is procedure and function that is used in the application which don't belong to data such as Public Class MyHardware The way I do this is. - Convert the form control to .ocx - Convert the Data class to .dll - Convert the common function to .dll I can re-use them from any place, any environment. |
| ||
| Re: How to build the correct way of n-tier apps without service and remoting? thank's for your reply samir. Now i get a little description about n-tier application architecture ... |
| All times are GMT -4. The time now is 9:41 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC