using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WindowsFormsApplication3.Enums{ public enum WizardStepT...
分类:
其他好文 时间:
2014-07-24 05:02:38
阅读次数:
207
前言: 在javascript里面动态创建标准dom对象一般使用: var obj = document.createElement('div'); 然后再给obj设置一些属性。 但是,在实际使用过程中,有些人可能会想,要是能这样创建标准的dom对象就好了 伪代码:var obj=strToDom....
分类:
编程语言 时间:
2014-07-23 22:15:07
阅读次数:
270
首先来一个小的asp.net mvc 4的sample,代码如下:HomeController:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;...
分类:
Web程序 时间:
2014-07-23 16:21:21
阅读次数:
239
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 namespace Wrox 6 { 7 class Program 8 { 9 ...
分类:
其他好文 时间:
2014-07-23 15:38:29
阅读次数:
231
我们知道对于class和struct都可以定义构造函数,而构造函数又有实例构造函数和静态构造函数。实例构造函数在每次实例化时,都会执行一次。那静态构造函数是否如此呢?我们先来看一段代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Thread...
分类:
其他好文 时间:
2014-07-23 13:20:16
阅读次数:
198
回到目录眾所周知,在linq to entity的查询语句中,不允许出现ef不能识别的关键字,如Trim,Substring,TotalDays等.net里的关键字,在EF查询里都是不被支持的,它的原因可能是为了更好的提高查询的性能吧,毕竟,好的性能取决于你的程序标准,有了一个严格的标准,才能设计出...
分类:
其他好文 时间:
2014-07-23 12:23:20
阅读次数:
350
今天上午主要在学习SqlServer、asp.net mvc和EF,学习mvc时感觉进展很慢,可能是asp.net mvc还是跟asp.netwebform有一点区别,打算明天下载一些网上开放的mvc案例来对照学习,改善一下学习效率。接触到EF时,感觉EF跟以前学习过的Linq To Sql有点类似...
分类:
其他好文 时间:
2014-07-23 12:17:16
阅读次数:
193
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Drawing;namespace WindowsFormsApplicati...
分类:
其他好文 时间:
2014-07-23 11:49:06
阅读次数:
199
using System;using System.Collections.Generic;using System.Linq;using System.Text;using WindowsFormsApplication3.Model;using WindowsFormsApplication3....
分类:
其他好文 时间:
2014-07-23 11:47:46
阅读次数:
160
工厂模式和简单工厂有什么区别。废话不多说,对比第一篇例子应该很清楚能看出来。优点: 工厂模式弥补了简单工厂模式中违背开放-封闭原则,又保持了封装对象创建过程的优点。using System;using System.Collections.Generic;using System.Linq;usin...
分类:
其他好文 时间:
2014-07-23 11:46:36
阅读次数:
188