引用就不说明,直接贴上: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
今天看到别人的代码使用 Linq 的Distinct进行去重。发现有很多需要注意的地方。实现方式如下:Linq 的Distinct方法需要传递一个自己实现IEqualityComparer的类来作为比较器。 public static class EnumerableExtension ...
分类:
其他好文 时间:
2014-06-15 22:07:35
阅读次数:
307
hibernateintegerstringfloatclassmerge@Entity@Table(name="orders")public class Order {//1-m,多的一方为关系维护端,关系维护端负责外键记录的更新,关系被维护端没有权利更新外键记录private String or...
分类:
系统相关 时间:
2014-06-15 21:31:17
阅读次数:
315
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
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
基于cocos2d-x的Entity-Component-System游戏架构方法,避免传统面向对象开发模式中的各种问题!!!...
分类:
其他好文 时间:
2014-06-15 09:01:45
阅读次数:
174
Why 在应用程序,尤其是互联网应用程序中,性能一直是很多大型网站的困扰,由于Web2.0时代的到来,人们更多的把应用程序从C/S结构迁移到B/S结构,这样会带来客户端轻量,部署、试试方便快捷等优势,但是万事万物都有他的两面性,这样的发展趋势同时也带来了其他方便的不好影响,其中很重要的一项就是系统对...
分类:
Web程序 时间:
2014-06-15 07:37:37
阅读次数:
283
完成的效果图:服务器端代码: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...