Data Access Layer

Topics: General Discussion Forum
Apr 19, 2007 at 10:15 PM
In reviewing all the videos and examples, it appears that everything is being tied to a sql backend. In my circumstances, I have a custom data access layer that is receiving xml streams from an as/400 system. How would I go about putting a custom data access layer in place of the dal that is generated by the service factory?
Apr 20, 2007 at 12:23 PM
In this case, perhaps one approach might be to create a GenericDataBase object with a custom data provider (see DAAB in EntLib Data Access Application Block) so you may just change your internal implementation of the SP access to retrieve the data from your repository (AS400) and return this xml stream. This way the majority of the changes are focused and abstracted on the data provider so the generated DAL will have a minor impact if any.