1 using System; 2 using System.Data; 3 using System.Collections.Generic; 4 using System.Data.Entity; 5 using System.Linq; 6 using System.Linq.E...
分类:
其他好文 时间:
2014-08-08 11:53:37
阅读次数:
338
1.简单的linq语法 //1 var ss = from r in db.Am_recProScheme select r; //2 var ss1 = db.Am_re...
分类:
其他好文 时间:
2014-08-08 11:50:35
阅读次数:
197
-------------------------------------------------------------Proson.csusingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication2
{
publicclassProson
{
publicstringName{get;priv..
分类:
其他好文 时间:
2014-08-08 02:12:05
阅读次数:
184
============================================多播委托-------------------------------------主程序usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication3
{
classProgram
{
stati..
分类:
其他好文 时间:
2014-08-08 02:10:55
阅读次数:
272
private void SetTextReadOnly(Control ctr, bool blReadOnly) { ctr.Controls.Cast().Select(s => s).ToList().ForEach(s => ...
分类:
其他好文 时间:
2014-08-07 18:30:21
阅读次数:
170
来自《西夏普入门经典》using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;namespace ConsoleApplication1{ .....
分类:
其他好文 时间:
2014-08-07 12:59:40
阅读次数:
217
服务端代码(Server.cs): 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Net.Sockets; 6 us...
分类:
其他好文 时间:
2014-08-07 12:00:00
阅读次数:
236
几年前曾经用户微软的Linq to SQL,那是第一次在.net项目上使用ORM(IBATIS这种半成品除外),从此后便对ORM产生了兴趣,终于不用写SQL语句了,代码看起来也很和谐了。之后也学习了EntityFramework,于是乎又进入了对.net mvc的追逐。曾经觉得J2ee的mvc真是个...
分类:
Web程序 时间:
2014-08-07 00:45:37
阅读次数:
480
创建XML文档,方法与形式是多样的,下面Insus.NET再例举两种,可供参考。XmlDocument(namespace:System.Xml)在实例化之后,它有一个方法LoadXml(),可以把字符串传为XML文档:而XDocument(namespace:System.Xml.Linq)也有一...
分类:
其他好文 时间:
2014-08-06 17:37:41
阅读次数:
278
获取站点下某一目录下某些类型的文件。我们可以使用LINQ的语法可轻而易捷实现。正面是例举了是获取站点下Data目录下所有.csv的文件:
分类:
其他好文 时间:
2014-08-06 17:32:51
阅读次数:
200