摘要
基本文介绍了一种基于字典的实体类设计方法。该方法采用了可动态添加的键值对存储容器来加载存储数据库的表对象,通过对实体类的进一步封装,有效解决程序中因数据库表结构的异动而引起代码的同步修改问题,并且采用C#语言对该实体类进行了设计与实现,真正做到了数据库表结构与逻辑代码的分离,大大提高了程序的可伸缩性和可扩展性。
This paper introduces a kind of design method based on dictionary entity class.The method uses a dynamically add keys on the storage container to load the database table object,through to the entity class is further encapsulated,effectively solve the procedures for database table structure changes caused by the modification of code synchronization problems,and using C# language to the entity class of the design and implementation,truly the database structure and the logic code separation,greatly improving the procedure of scalability and extensibility.
出处
《湖南工业职业技术学院学报》
2012年第5期4-5,17,共3页
Journal of Hunan Industry Polytechnic
关键词
实体类
数据字典
C#
entity class
data-dietionary
c#