以下是整个SqlHelper的Demo:

         public Result<List<ArticleDTO>> GetIndexArticleList(int count, int userID)
{
var exp = DbUtilityFactory.GetDbUtility().GetSqlExpression<ArticleEntity>();
exp.Where(a => a.userID == userID);
exp.OrderByDescending(a=>a.articleDate);
var data = DbUtilityFactory.GetDbUtility().Paged<ArticleEntity>(a=>a.articleDate,,);
if(data.Any())
{
return new Result<List<ArticleDTO>>()
{
IsSuccess = true,
ReturnMessage = "成功",
ReturnValue = data.Select<ArticleEntity, ArticleDTO>(a => new ArticleDTO()
{
articleAbstract = a.articleAbstract,
articleDate = a.articleDate,
articleID = a.articleID,
articleTitle = a.articleTitle
}).ToList()
};
}else
{
return new Result<List<ArticleDTO>>()
{
IsSuccess = false,
ReturnMessage = "没有记录"
};
}
}

比如在运行到第5行exp.OrderByDescending(a=>a.articleDate)时:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAB2EAAAChCAIAAABxt1PDAAAgAElEQVR4nO3dy4GrPNYo0MrgxHInjseDP4pOwME4iM7AsTiDvoPyA6GtBxjbUKw16f5sQA+0kdimOD9XAAAAAAD26ufbFQAAAAAA4GvkiAEAAAAA9kuOGAAAAABgv+SIAQAAAAD2S454ef8BAAAAANgIOeLl/ec///kfAAAAAMAWyBEv7zdH/O1aAAAAAAC0yREvT44YAAAAANgKOeLlyREDAAAAAFshR7w8OWIAAAAAYCvaOeLL6XA4Xcafno8/x3Pjk9z5eDhdrufjT3vTDVtBjrjnZHzQ5XT4CQYRAAAAAPB1UY74fPyp+s0+jtOQ/TnibOPL6fBzPP/+76ic83F7ycW35YifJ6bV04/+Dbr0C+SIAQAAAGCt5j5HfPtmkHMMcsYtjzTmrYB7rriz/LV6T454+PR12vPxxs8c8ZqeKAYAAAAA1iXMEY8ePk2lCdvSpnFeMsptDnLLhYTmyl6c0PSWHPG0VLkcMQAAAADQZd5zxLfMcPL54z0S9WONE5bDwxcSmo9NNvLKgixH/Hyk+tmOe0Pvjwf/tr3yNonSW5zT57XH7/IIun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92nqU0cyO2f+Ux+fqnH9dfLRkPI896pB8lM23QXWqnZNs33v8eq8Ovqj1fFzTknwpGD0/ED5TEP/mfM2n/HyTxsnNWvY84uH2p9uTVhCd3bWe8VyJwdsDK4VFZjUm8h9Nyj9SRPI7oNK3E7ow0zP+i/UojsZZI3xirUTl347Kmtte0TM7xa5u3KoFp78ckp1R0zxOIEt2/Pv3TzgIhz87SU3VzBEXB2GH9gQ3Ycbs7JClrjatxpS7ZJSUa3E5cjna7H1rb1RWWlQquaf0ekGV+nSuJfpivnXzDrBBi+WI2bXpa7j3FfxMVw/k66pJT3osaeL9A/s2f4R/j6hkPcaJjX///n2hAsKBbZr4mCq/XbaSuTjncgQANMgRs4Dll3DlPwVq/j78rSpPKbjyV6wLthEWJSpF5RalWa7FcsTCQTj8eTLEW+Fy5HIEAAuRI+Z1b3iE8c1rwVf+evIlt3Y9/2bMepfNEJWicpvuZ/VwumwmRywc+K77X1DLEG+By5HLEQAsRI6Y1636L+sin1vuhi+9cssFGVHJGz2G18ffNTGPcOC7vvZqAdbH5QgAdkSOmB364B/NZQtet1wQEZV8wkZyxMIBWAmXIwDYETliAGAXNpIjBgAA+DQ5YgAAAACA/ZIjBgAAAADYLzliAAAAAID9kiMGAAAAANgvOWIAAAAAgP2SIwYAAAAA2C85YgAAAACA/ZIjBgAAAADYLzliAAAAAID9kiMGAAAAANgvOWIAAAAAgP2SIwYAAAAA2C85YgAAAACA/ZIjBgAAAADYLzliAAAAAID9kiMGAAAAANgvOWIAAAAAgP2SIwYAAAAA2C85YgAAAACA/ZIjBgAAAADYLzliAAAAAID9kiMGAAAAANgvOWIAAAAAgP2SIwYAAAAA2K9Kjvj/A6uYBFUnSaH+AAAAAElFTkSuQmCC" alt="" />

这里就是实现了Lambda到sql的转换。

完整Demo地址:https://github.com/Racpheal/Construction.git

SqlHelper简单实现(通过Expression和反射)10.使用方式的更多相关文章

  1. SqlHelper简单实现(通过Expression和反射)1.引言

    之前老大说要改变代码中充斥着各种Select的Sql语句字符串的情况,让我尝试着做一个简单的SqlHelper,要具有以下功能: 1.不要在业务代码中暴露DataTable或者DataSet类型: 2 ...

  2. 你知道CSS实现水平垂直居中的第10种方式吗?

    你知道CSS实现水平垂直居中的第10种方式吗? 仅居中元素定宽高适用: absolute + 负 margin absolute + margin auto absolute + calc 居中元素不 ...

  3. Java 8 创建 Stream 的 10 种方式,我保证你受益无穷!

    之前栈长分享过 Java 8 一系列新特性的文章,其中重点介绍了 Stream. 获取上面这份 Java 8~12 系列新特性干货文章,请在微信搜索关注微信公众号:Java技术栈,在公众号后台回复:j ...

  4. SqlHelper简单实现(通过Expression和反射)9.Sql表述对象SqlSession

    此类是整个SqlHelper的另一个核心,基本思想就是通过EntityHelper,ObjectHelper和ExpressionHelper获取拼接Select语句的全部元素,拼接出完整Select ...

  5. SqlHelper简单实现(通过Expression和反射)5.Lambda表达式解析类

    这个ExpressionHelper类,是整个SqlHelper中,最核心的一个类,主要功能就是将Lambda表达式转换为Sql语句.同时这个转换过程比较复杂,所以下面详细讲解一下思路和这个类的作用. ...

  6. SqlHelper简单实现(通过Expression和反射)7.MySql数据处理类

    MySql的数据处理类和Sql Server没有太大差别,从思路上来说没有区别,所以此处只是给出代码,不再多加解释了. using System; using System.Configuration ...

  7. SqlHelper简单实现(通过Expression和反射)6.Providor模式(工厂+策略)可配置数据库选择

    基本思想,将MsSqlDbUtility和MySqlDbUtility设计成单例模式,通过App.config或Web.config进行默认的数据库设置,然后通过DbUtilityFactory获取D ...

  8. SqlHelper简单实现(通过Expression和反射)4.对象反射Helper类

    ObjectHelper的主要功能有: 1.通过反射获取Entity的实例的字段值和表名,跳过自增键并填入Dictionary<string,string>中. namespace RA. ...

  9. SqlHelper简单实现(通过Expression和反射)8.Sql Server数据处理类

    这个类基本上就是调用EntityHelper,ExpressionHelper和ObjectHelper来进行各种完整SQL的拼接操作. using System; using System.Conf ...

随机推荐

  1. 隐马尔可夫树(HMT模型)

    HMT(Hidden Markov Tree)隐马尔可夫树 [论文] 小波变换与HMT模型的图像插值算法-郭昌-中山大学学报(自然科学版)

  2. MFC中给控件添加变量,DoDataExchange中

    DoDataExchange函数其实是一项数据动态绑定技术.比如你在写动态按钮过程中须对按钮添加变量时,怎么添加?控件类已经写好了,其变量是已经固定的.你要添加新的变量就要用到DoDataExchan ...

  3. CSS代码重构与优化

    CSS代码重构的基本方法 前面说到了CSS代码重构的目的,现在我们来说说一些如何达到这些目的的一些基本方法,这些方法都是易于理解,容易实施的一些手段,大家平时可能也不知不觉地在使用它. 提高CSS性能 ...

  4. java对象和json数据转换实现方式3-使用jackson实现

    測试代码: package com.yanek.util.json; import java.io.IOException; import java.io.StringWriter; import j ...

  5. iOS开发之--实现倒计时显示时分秒

    这段时间写公司的一个外包项目,需要用到倒计时:需要显示时分秒,通过在网上搜集资料,找到了2中方法,我把这两种方法结合起来,可以很好的满足这个需求: 1.创建一个类继承自UIlabel,用来展示时分秒的 ...

  6. U盘重装Windows系统

    1.制作一个U盘老毛桃或者大白菜 2.进入BIOS 3.Secure Boot-Disabled,作用是关闭微软的Secure BOOT,这个功能开启会导致不能识别U盘启动系统的安装 4.Lauch ...

  7. Django学习笔记第十篇--实战练习六--发送邮件

    一.发送邮件需要引入的包依赖文件(Django1.8 Python2.7) from django.core.mail import send_mail,send_mass_mail 其中send_m ...

  8. jfinal如何调用存储过程?

    存储过程用一下 Db.execute(ICallback) 这个方法,在其中用一下:connection.prepareCall(sql).execute();就可以调用存储过程了,并且还可以自由控制 ...

  9. log4j日志服务器配置

    可参考的文章: http://www.jb51.net/article/89597.htm http://www.jb51.net/article/41001.htm http://liuzhijun ...

  10. llvm,gcc

    GCC,LLVM,Clang编译器对比   在XCode中,我们经常会看到这些编译选项(如下图),有些人可能会有些茫然,本文将对GCC4.2.LLVM GCC 4.2.LLVM compliler 2 ...