//1.顾客去书店订购某种类型(计算机)的书,当书店新到某类型的书籍,会通知需要此类书的顾客。
//2.当顾客的需求类型发生变化时,需要通知书店。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespa...
分类:
其他好文 时间:
2014-08-22 13:06:29
阅读次数:
219
网站登录总是会用到验证码,生成验证码对于C#来说很简单。因为有专门封装好的GDI+类可以直接调用使用具体代码如下 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; ...
分类:
其他好文 时间:
2014-08-22 12:38:46
阅读次数:
184
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Net.Mail;namespace Ajax.发邮件{ public class GetMail ...
分类:
其他好文 时间:
2014-08-22 12:34:06
阅读次数:
148
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Configuration;using System.DirectoryServices;namespace ...
分类:
Web程序 时间:
2014-08-22 10:43:16
阅读次数:
358
JSLINQ 是一个将LINQ对象转化为JavaScript对象的工具 。它是构建在JavaScript的数组对象的基础上进行转换的,如果您使用的是一个数组,你可以使用LINQ到javascript 。示例:var myList = [ {FirstName:"Chris",L...
分类:
编程语言 时间:
2014-08-22 10:28:35
阅读次数:
198
本文转载:http://www.cnblogs.com/huangxincheng/archive/2011/05/12/2044990.html介绍一个小工具 Linqer这些天写Linq挺烦人的,就上网搜搜可有什么好的sql转Linq的工具,咦,马上就看上了Linqer。哈哈,介绍一下使用方法吧...
分类:
数据库 时间:
2014-08-22 00:16:45
阅读次数:
299
.Net中的System.Xml.Linq命名空间提供了linq to xml的支持。这个命名空间中的XDocument,XElement以及XText,XAttribute提供了读写xml文档的关键方法。1. 使用linq to xml写xml:使用XDocument的构造函数可以构造一个Xml文...
分类:
其他好文 时间:
2014-08-22 00:08:15
阅读次数:
309
原文:LINQ To SQL在N层应用程序中的CUD操作、批量删除、批量更新0. 说明 Linq to Sql,以下简称L2S。 以下文中所指的两层和三层结构,分别如下图所示: 准确的说,这里的分层并不是特别明确:(1) 生成的DataContext(Linq t0 SQL Runtime)和Ent...
分类:
数据库 时间:
2014-08-21 14:47:14
阅读次数:
310
原文:Linq to Sql : 三种事务处理方式 Linq to SQL支持三种事务处理模型:显式本地事务、显式可分发事务、隐式事务。(from MSDN: 事务 (LINQ to SQL))。MSDN中描述得相对比较粗狂,下面就结合实例来对此进行阐述。 0. 测试环境 OS Windows Se...
分类:
数据库 时间:
2014-08-21 14:45:34
阅读次数:
252
原文:Linq to Sql : 动态构造Expression进行动态查询 前一篇在介绍动态查询时,提到一个问题:如何根据用户的输入条件,动态构造这个过滤条件表达式呢?Expression> predicate t => t.ProductName.Contains("che") && t.Unit...
分类:
数据库 时间:
2014-08-21 14:42:34
阅读次数:
299