前台
后台:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Net;usingSystem.Windows;usingSystem.Windows.Controls;usingSystem.Windo....
分类:
Web程序 时间:
2014-05-23 07:21:31
阅读次数:
296
一、在项目中批量修改数据时应该写一条Update的Sql语句来执行,不能先将所要修改的数据筛选出来,然后再遍历修改。原因:1.这样只操作一次数据库,而后者需要操作无数次,性能很差。2.绕圈子。需要修改数据时直接修改就行,不需要先全部查出来再逐条修改。3.修改数据时时可以使用join的,例如:1
up...
分类:
其他好文 时间:
2014-05-21 21:27:58
阅读次数:
332
using System;using System.Collections.Generic;using
System.Linq;using System.Runtime.InteropServices;using System.Text;namespace
Common{ public cla...
分类:
数据库 时间:
2014-05-21 20:41:53
阅读次数:
333
MongoDB C# Driver是官方提供的.NET C#驱动。 Getting
Started with the C# Driver C# Driver Tutorial C# Driver LINQ Tutorial Serialize
Documents with the C# Driver...
分类:
数据库 时间:
2014-05-21 20:28:24
阅读次数:
446
1.介绍 该教程涵盖了1.8版本的C#驱动中的LINQ查询。你可能已经阅读最新的C#
Driver Tutorial。 2.快速开始 首先,给程序添加下面的using声明 using
MongoDB.Driver.Linq;然后,像往常一样,获取一个collection的引用变量:var colle...
分类:
其他好文 时间:
2014-05-21 19:14:39
阅读次数:
385
今天在工作中走了很多的弯路,仔细回想下
是自己的基础知识太薄弱了,很多知识点都是似是而非的状态,一知半解的,比如
linq中的entity.select(e=>e.Name).contians("sa")
竟然不知道到底返回的是社么类型,要有的专业精神还有就是sql的类型装换,完全没有印象了 se....
分类:
其他好文 时间:
2014-05-21 18:04:41
阅读次数:
238
概述
本节主要讲解扩展方法,涉及LinQ的具体知识不多。
扩展方法的描述
.net framework为编程人员提供了很多的类,很多的方法,但是,不论.net
framework在类中为我们提供了多么多的方法,有时候仍然不能满足我们的需求,例如:你想让字符串对象具有ToPascal方法,含义就是将字符串转化为Pascal格式,并返回,我们知道,.ne...
分类:
其他好文 时间:
2014-05-21 15:00:25
阅读次数:
238
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
us...
分类:
其他好文 时间:
2014-05-21 09:36:30
阅读次数:
302
从多任务OS开始,线程主要用来表示IO异步;而今随着4G和多核等的到来,计算密集型又热门起来了。
硬件价格和性能从低到高:
PC/Laptop multi core, memory shared
PC clusters
SuperComputers
假设一个理想并行计算机:每个处理器计算能力相同,忽略调度,
static thread 是对一个虚拟处理器的软件层面的抽象;
s...
分类:
其他好文 时间:
2014-05-21 08:17:39
阅读次数:
326
一:上图二:代码主界面代码using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.Drawing;using System.Linq;using ...