摘要
针对传统ORM(object-relational mapping)框架使用成本高、执行效率难以控制等缺点,结合软件开发过程中的实际要求,提出了AORM(adaptive object-relational mapping)持久层框架的设计方案。该方案以C#的反射机制为基础,综合考虑软件实际开发过程中的具体要求,结合多种数据库类型的语法特点,建立了以XML关系映射文件与自适应关系映射相结合的AORM持久层框架。与传统ORM框架相比,其最大的特点是将SQL语句独立于应用程序,非常有利于数据库结构的调整和优化。
Aiming at the disadvantages of traditional ORM( object- relational mapping) framework such as high cost and difficult to control,combined with the actual process of software development requirements,a AORM( adaptive object- relational mapping) persistence framework was proposed. This framework is based on the reflection mechanism in C#,considering the specific requirements at actual software development process,combined with the grammatical features of multiple database types,established the persistence framework,which integrates the XML- relation mapping files and auto- relational mapping method. Compared with the traditional ORM framework,the application- independent SQL statements is the biggest feature,and very beneficial to adjust and optimize the database structure.
出处
《安庆师范学院学报(自然科学版)》
2015年第1期71-75,共5页
Journal of Anqing Teachers College(Natural Science Edition)