服务器端using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Net;using System.Net.S...
分类:
其他好文 时间:
2014-07-22 22:56:34
阅读次数:
160
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WindowsFormsApplication3.Model{ public class LogEntry ...
分类:
其他好文 时间:
2014-07-19 20:37:00
阅读次数:
177
using demo02.Common;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Win...
Entity Framework是个好东西,虽然没有Hibernate功能强大,但使用更简便。今天整理一下常见SQL如何用EF来表达,Func形式和Linq形式都会列出来(本人更喜欢Func形式)。1、简单查询:SQL:SELECT*FROM[Clients]WHEREType=1ANDDelete...
分类:
其他好文 时间:
2014-07-18 15:28:12
阅读次数:
288
第一部分学习函数式思维
捡起这本书的原因可能很多。可能是在学习 LINQ 和 C# 3.0,或者受此影响的别的技术时,听到过函数式编程,你想知道它是否有还其他意思;也可能听说过函数式编程可以使写并行或异步程序更容易;也许听说过函数风格的其他有趣应用,比如,如何写出没有可变状态的程序;还可能已听说过一种叫 F# 的新语言,将会成为 Visual Studio 2010 的一部分,你可能想知道...
分类:
其他好文 时间:
2014-07-17 20:14:35
阅读次数:
188
作业要求是汇总之前学过的基础知识,可以说 学的乱七八糟,一塌糊涂! 这里写了石头提及的几个重点,比如泛型,委托。 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Refle...
分类:
其他好文 时间:
2014-07-17 18:35:16
阅读次数:
205
效果图:数据库表:DirID:目录的ID,ParentID:目录的父路径ID,Name:目录的名字主要代码:usingSystem;usingSystem.Collections;usingSystem.Configuration;usingSystem.Data;usingSystem.Linq;...
分类:
其他好文 时间:
2014-07-17 14:30:49
阅读次数:
270
描述:该问题出现在校对BT种子数据的时候遇到的bug,原因是使用linq查找元素的时候B是A的一个子集, B在A中一定存在,这种情况下就不会抛出异常情况,反之B的一部分不属于A就会异常应为B中的一个元素在A中查找是没有找到,此时使用First()就会有bug用FirstOrDefault或者Find...
分类:
其他好文 时间:
2014-07-17 14:11:25
阅读次数:
359
MVCMmodels.pyCviews.pyVtemplatesadmin.pyfromhostinfo.modelsimport*HostGroups.objects.all()hg=HostGroups.objects.all()hg1.groupnamehg1.members.all()[0]h=hg1[0]ip=h.ipaddr_set.all()ip.values()fromhostinfo.modelsimport*hg=HostGroups.objects.all()hg1=hg[0]hg1.g..
分类:
其他好文 时间:
2014-07-17 08:08:52
阅读次数:
247
using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;u...