SqlProvider

码农软件 · 软件分类 · 常用工具包 · 2019-08-14 15:44:21

软件介绍

对象映射生成sql语句,将sql的拼接转换为对象拼接输出sql语句,减少拼接sql的麻烦和容易出错,例子:

 string select = Provider.Singleton.Select<Info>()
                .From<Info>()
                .Where(new Info() { name="bouyei",age=12 })
                .SqlString;

select结果:"Select name,age From Info Where name='bouyei' And age=12 "

            string insert = Provider.Singleton.InsertInto<Info>("tablename",
                new Info() { name = "newbie", age = 13 })
                .SqlString;

insert结果:"Insert Into Info (name,age) Values('newbie',13)"

            string update = Provider.Singleton.Update<Info>()
                  .Set<Info>(new Info() { name = "openthinking.cn", age = 11 })
                  .Where<Info>(new Info() {name="bouyei",age=2 })
                  .SqlString;


update结果:"Update Info Set name='openthinking.cn',age=11 Where name='bouyei' And age=2 "

            string delete = Provider.Singleton.Delete<Info>()
                 .From<Info>()
                 .Where<Info>(x => x.name == "bouyei")
                 .SqlString;


delete 结果:"Delete From Info Where (name='bouyei') "

本文地址:https://codercto.com/soft/d/12355.html

大型分布式网站架构设计与实践

大型分布式网站架构设计与实践

陈康贤 / 电子工业出版社 / 2014-9-1 / 79.00元

《大型分布式网站架构设计与实践》主要介绍了大型分布式网站架构所涉及的一些技术细节,包括SOA架构的实现、互联网安全架构、构建分布式网站所依赖的基础设施、系统稳定性保障和海量数据分析等内容;深入地讲述了大型分布式网站架构设计的核心原理,并通过一些架构设计的典型案例,帮助读者了解大型分布式网站设计的一些常见场景及遇到的问题。 作者结合自己在阿里巴巴及淘宝网的实际工作经历展开论述。《大型分布式网站......一起来看看 《大型分布式网站架构设计与实践》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

html转js在线工具
html转js在线工具

html转js在线工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具