码迷,mamicode.com
首页 >  
搜索关键字:linq to entity 多表联合    ( 11784个结果
linq 对象属性排序
WSWSVoucher [] wswsv = new WSWSVoucher[4];wswsv= wswsv.OrderBy(s => s.creditAmount).ToArray();wswsv= wswsv.OrderByDescending(s => s.creditAmount).ToAr...
分类:其他好文   时间:2014-06-26 00:44:03    阅读次数:220
对象的思考1
一个对象能自己能否作为自己的一个成员?using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApp...
分类:其他好文   时间:2014-06-26 00:27:11    阅读次数:169
.Net执行cmd命令
using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using ...
分类:Web程序   时间:2014-06-25 21:16:23    阅读次数:263
客户端调用 CMD 命令并回显结果。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;usi...
分类:其他好文   时间:2014-06-23 00:51:01    阅读次数:334
5 在C#中如何调用基类构造器
//基类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MVATwentyQuestions { class Test { public string _nam...
分类:其他好文   时间:2014-06-22 20:23:05    阅读次数:186
python 中Dict 转 Json
最近在公司需要写个小工具...
分类:编程语言   时间:2014-06-22 16:42:11    阅读次数:195
wordpress常见问题
nginx作为web服务器,wordpress上传主题报错 413 Request Entity Too Large 解决: vim /usr/local/nginx/conf/nginx.conf ’编辑nginx配置文件 client_max_body_size 20m; ‘在http段落里添加这一句后保存退出 /usr/local/nginx/sbin/nginx -s reload...
分类:其他好文   时间:2014-06-22 14:38:34    阅读次数:203
使用LinqToExcel读取Excel
我们读取和写入Excel 经常使用NPOI工具,如果我们的需求只是需要读取Excel,可以考虑使用LinqToExcel这个组件。这个组件用起来简单,实用,操作方便,而且结合了Linq的查询特性,excel版本不仅支持2003,而且连wps表格都支持(后缀名为.et),csv文件更不在话下了。项目地...
分类:其他好文   时间:2014-06-22 13:13:16    阅读次数:307
使用Linq中的Distinct方法对序列进行去重操作
使用Linq提供的扩展方法Distinct可以去除序列中的重复元素。 该方法具有以下两种重载形式: (1)public static IEnumerable Distinct(this IEnumerable source) (重载1) 通过使用默认的相等比较器对值进行比较并返回序列中的非重复元素。 (2)publicstatic IQueryable Distinct(this IQue...
分类:其他好文   时间:2014-06-22 11:07:47    阅读次数:258
LINQ to Object
LinQ to Object是指对任意IEnumerable或Ienumerable集合使用linq查询.它可代替查询任何可枚举的集合.如List,Array或Dictionary.  LINQ的优点   和foreache相比有三个优点 它们更简明、更易读,尤其在筛选多个条件时。它们使用最少的应用程序代码提供强大的筛选、排序和分组功能。无需修改或只需做很小的修改即可...
分类:其他好文   时间:2014-06-22 08:56:16    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!