1.当希望方法返回多个值时,声明out方法很有用。这样使方法可以有选择地返回值。using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 求数组最大最小值{ class...
分类:
其他好文 时间:
2014-07-07 14:53:45
阅读次数:
190
1 public IQueryable LoadPageuserInfos(int pageSize, int pageIndex, out int total, 2 Func wherelambda, Func orderbyLambda, bool isasc) 3 ...
分类:
其他好文 时间:
2014-07-07 14:13:08
阅读次数:
188
linq对数据的查询方式的表达形式主要有两种:var demo =from p in pList where p.id=*** select p;var demo =pList.where(p=>p.id=***) select p;以上是linq最近常见的两种表达形式。linq支持多种操...
分类:
其他好文 时间:
2014-07-03 11:57:38
阅读次数:
280
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Drawing;namespace BitMap{ /// /// Image 的摘要说明 ...
分类:
其他好文 时间:
2014-07-03 11:07:45
阅读次数:
154
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ListSort{ class Program { static void Main(st...
分类:
其他好文 时间:
2014-07-01 23:07:41
阅读次数:
252
花了好半天才解决这个问题,终于在网上找到了答案,在此记录备份。参考连接:http://bbs.csdn.net/topics/390150047自己总结的如下:结构就不说了,最后大家自己下源码看下就好。Inner Join:Left outer Join:Note:1. join in 是inner...
分类:
其他好文 时间:
2014-07-01 19:34:43
阅读次数:
259
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Drawing;namespace BitMap{ /// /// Image 的摘要说明 ...
分类:
其他好文 时间:
2014-07-01 00:20:26
阅读次数:
219
using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Drawing.Drawing2D;using System.Linq;using ...
分类:
其他好文 时间:
2014-06-30 23:15:01
阅读次数:
266
在上一篇我们在宏观概要上对DAL层进行了封装与抽象。我们的目的主要有两个:第一,解除BLL层对DAL层的依赖,这一点我们通过定义接口做到了;第二,使我们的DAL层能够支持一切数据访问技术,如Ado.net,EF,linq To Sql,这一点我们实现的不是很完美,仍有很大的改进空间,本文将加以改进。...
分类:
其他好文 时间:
2014-06-30 13:46:37
阅读次数:
324
上次我们说到了linq对数组内容的检索,自.net2.0以后,泛型成了很常见的一种应用技术,linq对泛型的检索也提供了完善的支持如对list类型的支持,范例如下: class Program { static void Main(string[] args) { List samplebooks ...
分类:
其他好文 时间:
2014-06-30 11:30:12
阅读次数:
125