=====================================Document.csusingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication2
{
publicclassDocument//文本类
{
//标题
publicstringTitle{get;privates..
分类:
其他好文 时间:
2014-08-26 02:57:05
阅读次数:
207
Linq to XML同样是对原C#访问XML文件的方法的封装,简化了用xpath进行xml的查询以及增加,修改,删除xml元素的操作。LINQ to XML 三个最重要类:XElement、XAttribute 和 XDocument。首先我们先介绍这三个类的基本属性和方法,然后再实现Linqto...
分类:
其他好文 时间:
2014-08-25 19:14:54
阅读次数:
170
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:
其他好文 时间:
2014-08-25 18:42:55
阅读次数:
264
MVC路由设置 App_Start/RouteConfig.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace Mvclogin
{
public...
分类:
Web程序 时间:
2014-08-25 17:05:54
阅读次数:
181
《1》
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace MvcFirst
{
public class RouteConfig
{
...
分类:
Web程序 时间:
2014-08-25 17:01:45
阅读次数:
164
.NET笔记系列:LAMBDA表达式常用写法这里主要是将数据库中的常用操作用LAMBDA表达式重新表示了下,用法不多,但相对较常用,等有时间了还会扩展,并将查询语句及LINQ到时也一并重新整理下:1.select语句:books.Select(p=>new{p.Title,p.UnitPrice,p...
分类:
其他好文 时间:
2014-08-25 14:50:04
阅读次数:
247
Lambda 表达式是一种可用于创建委托或表达式目录树类型的匿名函数。通过使用 lambda 表达式,可以写入可作为参数传递或作为函数调用值返回的本地函数。Lambda 表达式对于编写 LINQ 查询表达式特别有用。 创建 Lambda 表达式,需要在 Lambda 运算符 => 左侧指定输入参数....
分类:
其他好文 时间:
2014-08-25 11:39:14
阅读次数:
299
================================Person.csusingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingSystem.Collections;
namespaceConsoleApplication2
{
publicclassPerson:IComparable<Person>,IForm..
分类:
其他好文 时间:
2014-08-25 02:20:54
阅读次数:
197
#region linq的标准查询运算符(即lambda方式) 注:C#不支持标准查询运算符中带有整形参数(索引)的重载 // 1、标准查询运算符之筛选方法——where //IQueryable stu1=db.Student.Where(s => s.Ssex == "男"); //GridV....
分类:
其他好文 时间:
2014-08-24 23:38:53
阅读次数:
436