码迷,mamicode.com
首页 >  
搜索关键字:linq distinct    ( 10194个结果
C#运算String型表达式
现在有一个小需求就是对一个xml中的conditionusing System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.JScript;namespace TestX.....
分类:其他好文   时间:2014-06-16 07:12:36    阅读次数:204
Linq 常用语句
1、infrom p in 信息where (new string[] {"10","14"}).Contains(p.编码)select p2、not infrom p in 信息where !(new string[] {"10","14"}).Contains(p.编码)select p
分类:其他好文   时间:2014-06-13 19:39:29    阅读次数:251
Mysql 如何删除数据表中的重复数据!
1、使用distinct查询所有不重复的记录2、创建数据表相同结构的临时表,将第一步的数据复制进去 create temporary table if not exists student_temp as (select distinct(name), sex from student);3、tru...
分类:数据库   时间:2014-06-13 06:04:01    阅读次数:290
ASP.NET用户登录按钮事件
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace HotelMIS 7 { 8 public static class D...
分类:Web程序   时间:2014-06-12 19:09:01    阅读次数:238
C#:什么是委托
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace myTest 7 { 8 class Program 9 {10...
分类:其他好文   时间:2014-06-12 18:22:31    阅读次数:224
MVC4 用Linq to SQL创建数据模型
LINQ to SQL 提供了一种非常简单的方法来与 Microsoft SQL Server 数据库交互。1.创建新的 SQL Server 数据库点击”视图“-->“服务器资源管理器” ,打开 “服务器资源管理器” 窗口,如下图:右键“数据连接”,选择“创建新的SQL Server 数据库”,如...
分类:数据库   时间:2014-06-12 12:59:53    阅读次数:419
DBOperate.cs
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Data;usingSystem.Data.SqlClient;usingSystem.Configuration;///<summary>///DBOperate的摘要说明///</summary>publicclassDBOperate{privatestaticSqlConnectioncon=..
分类:数据库   时间:2014-06-10 23:15:36    阅读次数:314
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!