Moving Data Between Tiers
-
I want to build a classic 3-tier application. I want the business logic layer to be fully independent of UI(i.e. it should work well for both windows and web applications well and good). How can i pass the data between the tiers. What are the options available. what about raw xml, dataset, serialized xml or serialized dataset.I would also like to know why I should use one technique over the other. Any help appreciated. Thanks in advance. anand
-
I want to build a classic 3-tier application. I want the business logic layer to be fully independent of UI(i.e. it should work well for both windows and web applications well and good). How can i pass the data between the tiers. What are the options available. what about raw xml, dataset, serialized xml or serialized dataset.I would also like to know why I should use one technique over the other. Any help appreciated. Thanks in advance. anand
The way you move the data is irrelevant. I'd move data in whatever form is easiest, i.e. when connecting to a database, I'd just return a dataset, unless only one value is called for. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
The way you move the data is irrelevant. I'd move data in whatever form is easiest, i.e. when connecting to a database, I'd just return a dataset, unless only one value is called for. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
hi, Lot of ways are there to move data to and fro to any layer. If it is a database related operation then we can persist the data in dataset or datatable. If it is some other requirement then you can go and change the accesability modifiers of feild or data members. My favorate way is, Encapsulate all logic into a .dll file and communicating through messaging.:) ************************** S r e e j i t h N a i r **************************
-
I want to build a classic 3-tier application. I want the business logic layer to be fully independent of UI(i.e. it should work well for both windows and web applications well and good). How can i pass the data between the tiers. What are the options available. what about raw xml, dataset, serialized xml or serialized dataset.I would also like to know why I should use one technique over the other. Any help appreciated. Thanks in advance. anand
Make the three tiers like the a. The UI tier (ASP.NET Web based or C#.NET Windows based) b. The business logic (C#.NET Web Service) c. Storage tier (Database and file system) Between a and b the data will flow with the SOAP protocol in form of XML. This will allow third party clients like external systems, Unix based programs to connect with your software. Between b and c you need not worry about how data flows, let the ADO.NET classes take care of that. a never talks with c directly. Hope this helps. For more info read Web Services turorials, WS client tutorials and an ADO.NET book.