[quoted text, click to view] Mike Questioner wrote:
> 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
>
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.