PetShop and nhib.pdf must be familiar to developers on the. Net platform. The former is a classic software development architecture, and the latter is a powerful ORM framework.
Recently, some of the functions of a project need To be changed from SQL Server data To Oracle data. The original DAL layer is implemented using the LINQ To SQL method, microsoft's LINQ does not provide the ing function to Oracle (Here we despise MS). If you want to change it to ADO. NET to implement the DAL layer, there is no doubt that the workload is huge. After comprehensive consideration, we decided to use other ORM frameworks to transform the project and compared the commonly used open-source ORM framework, because nhib.pdf recently released its 3.0 version, which integrates the LINQ function, so we finally decided to use nhib.pdf to transform the project.
Based on this project experience, this article provides a Demo to demonstrate the application of NHibernate in the multi-layer architecture development based on PetShop.
- Demo details
- Download Demo source code
FAQ summary:
- Nhib1_composite-id joint primary key Configuration
- Batch Delete NHibernate