码迷,mamicode.com
首页 >  
搜索关键字:linq to entities    ( 7131个结果
启动WCF多个服务方法
引用就不说明,直接贴上:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ServiceModel;using System.Configuration;usi...
分类:其他好文   时间:2014-06-15 22:17:25    阅读次数:226
List集合去重
今天看到别人的代码使用 Linq 的Distinct进行去重。发现有很多需要注意的地方。实现方式如下:Linq 的Distinct方法需要传递一个自己实现IEqualityComparer的类来作为比较器。 public static class EnumerableExtension ...
分类:其他好文   时间:2014-06-15 22:07:35    阅读次数:307
Linq常用
1、左关联查询var lst = from m in db.信息 join d in db.明细信息 on m.单号 equals d.单号 into mi from dt in mi.DefaultIfEmpty() //dt标示右表 where m.单号 == "2014" && dt.编码.S...
分类:其他好文   时间:2014-06-15 21:09:49    阅读次数:189
EF快速开发定义数据接口类(转)
using System;using System.Linq;using System.Linq.Expressions;using System.Data.Objects;namespace HENANLUHENG.Framework.EntityRepository{ public interf...
分类:其他好文   时间:2014-06-15 19:53:41    阅读次数:283
重温WCF之群聊天程序(十)
完成的效果图:服务器端代码:using System;using System.Collections.Generic;using System.Linq;using System.ServiceModel;using System.ServiceModel.Description;using Sy...
分类:其他好文   时间:2014-06-15 06:54:24    阅读次数:287
子窗体控制父窗体的内容
//父窗体using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.T...
分类:Windows程序   时间:2014-06-15 06:04:18    阅读次数:366
自定义 匹配文本框
using System;using System.Collections.Generic;using System.Linq;using System.Net;using...
分类:其他好文   时间:2014-06-14 21:37:08    阅读次数:262
sqlhelper类
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.SqlClient;namespace Com.LingHu.D...
分类:数据库   时间:2014-06-14 17:25:40    阅读次数:219
HTML 字符实体 < >: &等
在 HTML 中,某些字符是预留的。 在 HTML 中不能使用小于号(),这是因为浏览器会误认为它们是标签。 如果希望正确地显示预留字符,我们必须在 HTML 源代码中使用字符实体(character entities)。比如要写这篇日志在前端展现出大于号(>),小于号( 大于号 &gt; &#62...
分类:Web程序   时间:2014-06-14 17:17:32    阅读次数:245
LINQ基础
1 var i1 = 6; 2 //C#中的var是一个类型的简写,是根据右边进行类型的“推导” 3 //可以根据6推断出来var代表int,只是编译器自动帮我们把var换成int 4 5 //i1 ...
分类:其他好文   时间:2014-06-14 17:05:08    阅读次数:160
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!