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://www.codercto.com/soft/d/12355.html

颠覆者:周鸿祎自传

颠覆者:周鸿祎自传

周鸿祎、范海涛 / 北京联合出版公司 / 2017-11 / 49.80元

周鸿祎,一个在中国互联网历史上举足轻重的名字。他被认为是奠定当今中国互联网格局的人之一。 作为第一代互联网人,中国互联网行业最好的产品经理、创业者,他每时每刻都以自己的实践,为互联网的发展贡献自己的力量。 在很长一段时间内,他没有在公共场合发声,甚至有粉丝对当前死水一潭的互联网现状不满意,发出了“人民想念周鸿祎”的呼声。 但周鸿祎在小时候,却是一个踢天弄井,动不动就大闹天宫的超级......一起来看看 《颠覆者:周鸿祎自传》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

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

在线XML、JSON转换工具

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

html转js在线工具