Groups | Blog | Home
all groups > asp.net webcontrols > february 2005 >

asp.net webcontrols : 3-tier, data-layer


Mike Questioner
2/28/2005 1:01:33 AM
Dear people ,

I have a question about seperating data code from presentation code for,
like in client server applications. The example i am looking for goes
about the topic data layer. In my server code i often use the same code
for connecting, calling the data adapter and the dataset, and then often
i use to fill the datagrid. I shere an example available or a good book
that explain how to deal with code seperation you use in client server
application. Is there a class or dll example available where they
explain how to build up a data layer that can be used thruw the project.

I hope i clould explain what i need, my english is not very goog

Thanx in advance

Best regards

Mike

*** Sent via Developersdex http://www.developersdex.com ***
no one
2/28/2005 12:55:37 PM
[quoted text, click to view]

I don't know of an example, but I started to build my own framework data
layer. As a result, I don't have any hardcoded SQL statements and the
framework uses actual data objects for each table. I then created
interfaces on the web side for expected data behavior and implemented them
in a middle layer that also was able to cache the reflection done on each
data type. The only real problem I ran into is that .Net is not able to do
reflection properly from a string containing "namespace.objectName" like
Java is, so I had to actually pass an instance from the middle layer to the
data framework. I have actually thought of writing a series of blog
articles on this subject once my current project is over. The lack of a
data layer is something missing from .Net, but there are "standard"
interfaces that define data behavior. My framkework uses the interfaces.
Steve C. Orr [MVP, MCSD]
2/28/2005 1:15:41 PM
I think this book would be the best one for you:

Expert One-on-One Visual Basic .NET Business Objects (by Rockford Lhotka)
http://www.amazon.com/exec/obidos/ASIN/1590591453/steveorrnet-20/002-8911713-4223229?creative=327641&camp=14573&link_code=as1

or here's the C# version if you prefer:
http://www.amazon.com/exec/obidos/ASIN/1590593448/steveorrnet-20/103-4498408-3839024?creative=327641&camp=14573&link_code=as1

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


[quoted text, click to view]

AddThis Social Bookmark Button