.NET Best Architecture!!!?
-
Hi All, Recently I heard that some companies create a class of each tables present in the database, I will illustrate the same If there is a table called Employee with EmployeeId, EmployeeName and Salary, then they create a class clsEmployee with EmployeeId, EmployeeName and Salary as their private fields and accessor methods. And rather than passing the Dataset or XML through the wire, they pass the collection of this objects. Can anyone tell me what is the advantage of this architecture?, where can I find some articles or guide to implement this architecturte? Grateful to you all:) Sony sebastian
-
Hi All, Recently I heard that some companies create a class of each tables present in the database, I will illustrate the same If there is a table called Employee with EmployeeId, EmployeeName and Salary, then they create a class clsEmployee with EmployeeId, EmployeeName and Salary as their private fields and accessor methods. And rather than passing the Dataset or XML through the wire, they pass the collection of this objects. Can anyone tell me what is the advantage of this architecture?, where can I find some articles or guide to implement this architecturte? Grateful to you all:) Sony sebastian
Guess u should look for the same reasons why to use object oriented programming because what u r talkin about is a simple implementation for object oriented programming If u want a running ASP.net application (VB Script) send post here
Best Regards 3ala2 :)
-
Hi All, Recently I heard that some companies create a class of each tables present in the database, I will illustrate the same If there is a table called Employee with EmployeeId, EmployeeName and Salary, then they create a class clsEmployee with EmployeeId, EmployeeName and Salary as their private fields and accessor methods. And rather than passing the Dataset or XML through the wire, they pass the collection of this objects. Can anyone tell me what is the advantage of this architecture?, where can I find some articles or guide to implement this architecturte? Grateful to you all:) Sony sebastian
Hi there, Actually, I agree with someone said that they both have their own places, you can find some of interesting discussions from the links: http://weblogs.asp.net/despos/archive/2005/08/04/421549.aspx[^] http://msdn.microsoft.com/msdnmag/issues/05/08/CuttingEdge/[^] http://aspnet.4guysfromrolla.com/articles/050405-1.aspx[^] and here's the tutorial: http://www.asp.net/learn/dataaccess/default.aspx?tabid=63[^]
-
Hi there, Actually, I agree with someone said that they both have their own places, you can find some of interesting discussions from the links: http://weblogs.asp.net/despos/archive/2005/08/04/421549.aspx[^] http://msdn.microsoft.com/msdnmag/issues/05/08/CuttingEdge/[^] http://aspnet.4guysfromrolla.com/articles/050405-1.aspx[^] and here's the tutorial: http://www.asp.net/learn/dataaccess/default.aspx?tabid=63[^]
Thanks Dude!!! I will go through all the links you gave.