Research Persistent Data Based on NHibernate
- Author
- LiuEnDong
- Advisor
- ZhaoGuangLi
- School
- Dalian Maritime University
- Major
- Applied Computer Technology
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 164
- Citations
- 3
Abstract
Development of software projects is commonly used object-oriented software development techniques, database generally use a relational database, object-oriented and relational database based on the design of the object model and the relational model between the two models, there is an \mismatch \To solve this problem, ORM (Object-Relational mapping object-relational mapping) technology came into being. Seriously study ORM technology, combined with the actual needs of the office automation project in Yantai City, Shandong Province, a unit designed and implemented a lightweight the the ORM component-MYPL of. Around the Design and Implementation of the components, the main work of this paper is focused on the following aspects: 1. Data persistence concept, the theoretical study of the object model and the relational model describes the data persistence related concepts, the object model and the relational model theory, analysis of the \. 2. The in-depth study the NHibernate implementation techniques on the the ORM component-NHibernate widely used in-depth research, it \3. Designed and implemented based on. NET platform lightweight ORM component-MYPL for NHibernate lack, combined with the actual project improved ORM model, based on the model designed and implemented based on NET platform lightweight ORM group piece-MYPL. The components using custom attributes extended entity class metadata information, read metadata information through reflection mapping, do not need to write any mapping file, can be realized relational object mapping, basic operating data persistence, conditions of the query and database transaction processing functions, and supports custom SQL statements and stored procedures, be able to meet the demand for data persistence using the components can greatly reduce the coupling between business layer and data layer, improve system scalability, maintainability and application development efficiency. 4. Testing and application of MYPL components the MYPL component applied to actual projects and the strict performance MYPL test, has been tested and proven MYPL do not need to write any mapping file will be able to achieve the mapping between object and relational databases and object persistence, significantly reducing the amount of program code, and the performance is higher than NHibernate.
Table of contents
Summary 5-6
Abstract 6-10
Chapter 1 Introduction 10-14
1.1 of the background and significance; nbsp -11
1.2 research at home and abroad The status quo 11-12
1.3 ORM Product Description of the 12-13
1.3.1 ObjectSpaces 12-13 < br /> 1.3.2 NHibernate 13
1.4 chapter structure of the thesis 13-14
Chapter 2 data persistence concepts and theoretical basis 14-27 < br /> 2.1 data persistence concept 14
2.2 data persistence commonly used method 14-17
2.3 relational model 17-19
2.3 .1 relational model constitutes 17-18
2.3.2 relational database; nbsp nbsp 18-19
2.4 object model; 19-23
2.4.1 the composition of the object model 19-23
2.4.2 Object Model advantages and limitations of 23
2.5 impedance mismatch problem 23-25 ??
2.5.1 The impedance mismatch problem of the origin of 23-24 the
the 2.5.2 generated impedance mismatch cause of the problem 24-25
nbsp 2.6 ORM technical Introduction; 25 -26
2.6.1 ORM concept 25
2.6.2 ORM implementation principle analysis 25-26
2.6.3 use the ORM advantages 26
2.7 Summary 26-27 the
chapter 3 NHibernate persistence strategy 27-39
3.1 NHibernate Profile 27-28
3.1.1 NHibernate Overview The 27-28
3.1.2 NHibernate system structure 28
NHibernate 3.2 mapping mechanism nbsp it; 28-38
3.2.1 structure mapping 29-30
3.2.2 relationship mapping 30-38 the
shortcomings exist in 3.3 NHibernate 38
3.4 Summary 38 the custom ORM component of -39
Chapter 4 Design and Implementation 39-59
the 4.1 MYPL phase for the the NHibernate improvement 39
4.2 MYPL Design Summary 39-40
4.2.1 MYPL architecture 39-40
4.2.2 The functional design 40
4.3 MYPL the design and implementation of 40-58
4.3.1 MYPL the overall structure of 40-43 the
structure 4.3.2 mapping design and implementation of 43-48
4.3.3 object identity is implemented in 48-49
a 4.3.4 MYPL mapping type 49-50
4.3.5 relational mapping achieve 50-53
4.3.6 persistent objects to relational databases to achieve 53-55
4.3.7 affairs function to achieve 55-56
the 4.3.8 query functions to achieve 56
4.3.9 implementation of the stored procedure to achieve 56-58
4.3.10 perform a custom SQL statement to achieve 58
4.4 Summary 58 -59
Chapter 5 MYPL test and application 59-68
5.1 MYPL in the NET project 59-60 the
5.2 test MYPL The 60-65
5.2.1 test environment the 5.2.2 test code 61-62
nbsp 62-64
In 5.2.3 test data; 64-65
5.2.4 Conclusion nbsp of 65
5.3 MYPL The actual project; 65-67
In 5.4 Summary 67-68
Chapter 6 Summary and Outlook 68-70
6.1 summarizes 68
6.2 Looking 68-70 the
refer to literature 70 the degree -72
published papers 72-73
Acknowledgements 73-74
graduate resume 74
Related dissertations
- Research and Application of SaaS Management Platform Based NHibernate
- Research and Application of Data Persistence Layer Based on Object Relation Mapping Technology
- An Empirical Study on the Performance of Chinese Mutual Funds
- Research on Persistence in Market Timing Ability of Bond Fund Managers
- Accounting Conservatism, Earnings Persistence, and Accruals Anomaly
- Research on Common Persistence in Conditional Variances Theory and Its Application
- Multi-scale Analysis of RMB Exchange Rate Based on Wavelet Theory
- Design and Implementation of Human Resource Management System
- Su Art
- Volatility of Freight Rate in VLCC Shipping Market
- A Research on the Land Price Inlfation Persistence in China Based on Bayesian Method
- Analysis on Some Properties of Stochastic Population Systems
- Study on the Stability and the Bifurcation of SEIR Epidemic Model
- Qualitative Analysis on a Class of Predator-prey Systems with Holling-IV Type Functional Response Function
- Asymptotic Properties of Some Impulsive Competition Systems
- The Study of Some Predator-pery Models with Impulsive Control and Periodic Coefficient
- Persistence and Nonpersistence of a Nonautonomous Mutualism System with Random Perturbation
- The Qualitative Research on Two Kinds of Lotka-Volterra Models with Continous Capture
- The Research of Dynamics Character of Several Kinds of Discrete Population System
- Study on the Stability of Epidemic Model of Viruses Mutate