码迷,mamicode.com
首页 >  
搜索关键字:linq    ( 6890个结果
.net资料
.NET开发语言电子资料汇总: Pro LINQ:Language Integrated Query in C# 2008 http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=166647 MS Press - Introducing Microsof...
分类:Web程序   时间:2014-07-22 23:08:53    阅读次数:720
C#冒泡排序
C#冒泡排序,转载自:http://bbs.it-home.org/forum-net-2.html不多解析自己看去吧using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace...
分类:其他好文   时间:2014-05-01 20:17:35    阅读次数:348
C#标准查询运算(Linq)
1.标准查询符 在C#3.0之后微软对集合进行了非常大的改造,使用了查询符进行集合的查询,这一切都来自.NetFramework 对Lambda表达式的支持。标准查询符,一共有两种类型是支持泛型和不支持泛型的,因为引入泛型的目的在于写出公用的代码,避免代码累赘。 注意,除非赋值给变量的类型是一眼就能看出来的,否则就应该只有在声明类型的时候指定隐式类型的变量(var)。 在System...
分类:其他好文   时间:2014-05-01 17:43:22    阅读次数:487
泛型连接数据库
这些天用泛型做了一个数据库的底层,自我感觉很方便,但是功能不是很完善,会继续考虑下去下面给大家分享一下代码1数据库连接的帮助类using System;using System.Collections.Generic;using System.Linq;using System.Text;using...
分类:数据库   时间:2014-05-01 14:07:32    阅读次数:603
login
using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using ...
分类:其他好文   时间:2014-05-01 13:25:21    阅读次数:380
console.read()读入的内容
今天写的特别简单的代码,大体是一个模式选择,从控制台读入一个数,然后做出相应的选择. 代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Thre...
分类:其他好文   时间:2014-05-01 08:41:35    阅读次数:340
吐槽下linq to sql的分页功能
在调试程序的时候发现一个非常奇怪的问题: 用使用linq分页,分页到第二页的时候,第二页里面有第一页里出现的数据,开始还以为是、linq语句写的有问题,调试半天,无解。后来发现是因为没有排序的缘故。 使用这个q.Skip((sc.cpage.GetValueOrDefault() - 1) * .....
分类:数据库   时间:2014-05-01 02:23:38    阅读次数:466
Linq练习
首先在Program.cs的Main()方法下添加如下代码:string[] names = { "heh", "haha", "huahua", "kuku" };1、取得以h开头的名称:(查询语法) var queryResult = from n in names ...
分类:其他好文   时间:2014-04-30 23:02:21    阅读次数:509
Linq To Entity 多表联合查询
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LinqToEntity { class Program { static void Main(string[] args) { //...
分类:其他好文   时间:2014-04-29 13:16:21    阅读次数:574
C#-访问轰炸机,新建进程,结束进程...(ConsoleApp)---ShinePans
program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace Tst { class Program { static void Main(string[] arg...
分类:移动开发   时间:2014-04-27 21:35:59    阅读次数:467
6890条   上一页 1 ... 686 687 688 689 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!