码迷,mamicode.com
首页 >  
搜索关键字:linq 表达式树    ( 7079个结果
C#: 数字经纬度和度分秒经纬度间的转换
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ /// /// 公用的特殊函数 /// pub...
分类:其他好文   时间:2014-06-11 09:34:53    阅读次数:411
实例365(12)---------数组的基本操作(二)
一:在数组中添加一个元素,截图二:代码using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;...
分类:其他好文   时间:2014-06-11 09:31:46    阅读次数:281
Trie(C#)
TrieSearch.cs//#define WEBusing System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Thre...
分类:其他好文   时间:2014-06-11 08:51:28    阅读次数:375
关于Expression表达式树的拼接
最近在做项目中遇到一个问题,需求是这样的:我要对已经存在的用户进行检索,可以根据用户的id 或者用户名其中的一部分字符来检索出来,这样就出现了三种情况 只有id,只有用户名中一部字符,或者全部都有.我们用的MVC+EF5.0的框架,在BLL层进行查询的 时候需要构建lambda表达式来作为查询条件,...
分类:其他好文   时间:2014-06-11 07:55:34    阅读次数:225
LINQ To SQL && Lambda 使用方法小结 (转)
1、 查询Student表中的所有记录的Sname、Ssex和Class列。select sname,ssex,class from studentLinq: from s in Students select new { s.SNAME, s.SSEX, s.CLASS }Lambda: Stud...
分类:数据库   时间:2014-06-09 22:04:17    阅读次数:456
linq之InnerJoin和LeftJoin以及封装动态查询条件版本
Linq的出现,使数据集的处理显得愈来愈简便。很多时候对于本地数据集的处理,脑海中的第一反应,即尝试使用Linq来实现。诸如DataTable的innerJoin以及leftJoin等操作,很多时候我们一接到类似的需求,立马便动手,诸如以下demo:一、InnerJoin 1 ...
分类:其他好文   时间:2014-06-09 21:30:04    阅读次数:347
C#版的MapReduce
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace mapReduce { public static class helper { public static Dictionary MapReduce( ...
分类:其他好文   时间:2014-06-08 10:39:41    阅读次数:227
ASP.NET TextBox 当鼠标点击后清空默认提示文字
ASP.NET TextBox 当鼠标点击后清空默认提示文字[ 方法一]前台代码:后台代码:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;usi...
分类:Web程序   时间:2014-06-08 00:16:04    阅读次数:298
BS架构数据库操作必备
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Text;using System.Data.SqlClient;using System.Data;using...
分类:数据库   时间:2014-06-07 21:59:54    阅读次数:335
个人理解的单例模式
下面是个人理解的单例模式:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication6{ public sealed class Si.....
分类:其他好文   时间:2014-06-07 21:55:56    阅读次数:277
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!