EF技术在进销存管理系统的应用研究
2018-05-02林佳一
林佳一

摘 要: 面对日益庞大且复杂的应用系统,传统的数据访问技术存在开发效率低、安全性弱和兼容性差等问题。为了进一步快速构建一个功能强大的系统,Entity Framework数据模型这一新技术应运而生,该技术基于ORM框架,融合了面向对象的思维方式。将EF技术应用在三层架构的进销存管理系统,程序员可不再拘泥于SQL语句细节,而是重点关注程序逻辑的实现。EF技术的使用大大缩短了开发周期,有助于更有效地使用数据。
关键词: Entity Framework; ORM; 三层架构; SQL
中图分类号:TP311 文献标志码:A 文章编号:1006-8228(2018)03-38-04
Research on the application of EF technology in inventory management system
Lin Jiayi
(GuangDong Communication Polytechnic, Guangzhou, Guangdong 510650, China)
Abstract: Facing the increasingly large and complex application system,traditional data access technology has many problems, such as low development efficiency, weak security and poor compatibility. In order to further build a powerful system quickly, the new technology of Entity Framework data model came into being. This technology is based on the ORM framework, and integrates the object-oriented way of thinking. The application of EF technology in a three-tier architecture of inventory management system, the programmers can no longer get bogged down in the details of SQL statements, but rather focus on the realization of program logic. The application of EF technology greatly shortens the development cycle and helps to use data more effectively.
Key words: Entity Framework; ORM; three-tier architecture; SQL
0 引言
随着大数据时代的到来,人们普遍关注如何应用信息化的手段高效地管理和使用数据。无论单位规模大小,都建有独立的信息系统来管理自己重要的数据。在实现这些系统的过程中,数据的访问技术直接决定着系统使用数据的质量和效率。尽管在设计思想上,从二层结构、三层结构到N层结构的分层开发模式对提高系统的开发速度效果明显,但在数据访问方面还有进一步提升的空间。
业界需要一种数据访问技术,它对用户而言希望快速有效获取数据,对开发者而言希望容易掌握。EF技术的出现为满足这些要求提供了一种新的方案。EF技术是由传统的数据访问技术发展而来,是ORM框架的具体实现,解决了关系表到实体类的转换问题,使程序员从面向对象的角度上操作数据库。本文通过分析EF技术原理,结合三层架构开发模式,探讨了在进销存管理系统中应用EF技术的方法。……
