摘要
基于ORM思想,结合Nhibernate与NBear的优点,提出了一种轻量级ORM数据访问框架SqlBuilder.NET,旨在为通用数据访问提供完整的解决方案。Sqlbuilder.NET基于C#语言编写,主要由OracleSqlBuilder、DBOperation和SqlObjectMarker构成。Sqlbuilder.NET具有一个事务一个日志列表、特殊字符的编解码、查询结果多种类型输出和组件间的松耦合的特性,实现了数据新增、更新的对象化操作及对象化的复杂查询语句生成等功能。
In this paper, based on the method of ORM and combining with the advantages of Nhibernate and NBear. a lightweight ORM data access framework, SqlBuilder.NET is proposed to provide a complete solution for general data access. Sqlbuilder.NET adopts C# language, and mainly composed of Oracle SqlBuilder(SQL statement object generated component), DBOperation(database operation component), SqlObjectMarker(object generator tool). Sqlbuilder.NET has such characteristics as a transaction to a log list,special character codec, multiple output types of query results, and loose coupling among components. The functions are realized, such as object-oriented operation with data adding and updating, generation of objectified complex query statements and so on.
出处
《计算机与网络》
2018年第3期70-72,共3页
Computer & Network