基于.NET Entity Framework数据库访问机制的设计与应用  被引量:7

Research and application of database access mechanism based on.Net Entity Framework

在线阅读下载全文

作  者:沈霞菲 王建中[1] 

机构地区:[1]杭州电子科技大学信息与控制研究所,浙江杭州310018

出  处:《现代电子技术》2014年第24期5-8,共4页Modern Electronics Technique

摘  要:Entity Framework技术因其灵活、开发周期短等优点,被广泛运用到.NET平台开发中。基于Entity Framework框架设计一个典型MVC架构中的数据库访问层,运用Entity Framework框架中的Code First方式结合泛型、封装、单例模式等技术,实现实体类映射到数据库表并自动往数据库建表的功能,并对每个实体类自动向外发布了增、删、改、查4种操作方法,编译成DLL库文件以插件的形式供业务逻辑层调用,达到与业务逻辑和数据库完全解耦。Entity Framework technology is widely used in .NET platform development due to its flexibility,short develop?ment cycle and other advantages. A database access layer in typical MVC architecture was designed based on Entity Framework. The Code First mode in Entity Framework combined with a generic framework,packaging,single?case model and other technolo?gies is used to realize the entity classes mapping to database tables and generate the database tables automatically. The opera?tions of addition,deletion,update and selection are released to each entity class automatically. The DLL library files are com?piled for the business logic layer call in the form of plug?in to achieve the complete decoupling of business logic and database.

关 键 词:实体框架 泛型类型 接口 数据库 

分 类 号:TN911-34[电子电信—通信与信息系统] TP392[电子电信—信息与通信工程]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象