Skip to content
TheHunter edited this page Apr 13, 2013 · 23 revisions

Welcome to the PersistentLayer wiki.


In this page, I will show how this software can be used, with a few steps you can be able to integrate it in your business logic application.

First, I want to explain that this component is designed in order to incapsulate common queries operations through invoking business object methods, designing by the DAO pattern. Another important thing is this framework exposes a set of interfaces which can be customized, so if It's always possible to implement your DAOs without using the implemented DAOs present in this framework.

In order to learn about this component, you have to see the nunit test project named PersistentLayer.Test, and this one shows you how the component is used, in particolar It shows you how your business environment can be start up, and mainly how you can use DAOs on your business logic layers.

So, if you intend to use DAOs present in this framework, you must have these requirements:

1. You must have a minimal Knowledge about nhibernate framework, so for ex. how come queries can be used / builded (like DetachedCriteria, QueryOver, HQL, native SQL, and the most famous LINQ provider).
2. You have to decouple your business domain model with business logic (so without any kind of reference about persistent concepts) in order to work in the best way.
3. You must be able to create mapping file (*.hbm.xml) or maybe using wrapper classes like Fluent nhibernate.

Clone this wiki locally