目标:降低研发人员门槛,提高效率,去除重复引用DLL的工作,基础配置由抽象工厂处理。基础扩展/// /// DataTable 转换为List 集合///
/// 类型/// DataTable/// public static List ToList(this DataTable dt) wher...
分类:
其他好文 时间:
2014-04-30 21:27:46
阅读次数:
508
控制器(Controller)如果没有特定的表/模型关联的话,哪怕建测试都会出错,但你可以加一行到控制器(Controller)里就好了public
$uses=array(); 或者 public $uses=false;2.4以上版本的好像默认可以支持了
分类:
Web程序 时间:
2014-04-30 20:29:17
阅读次数:
407
public DateTime? StatusDateTime =
null;脑子便也出现个问号,这是什么意思呢?网上搜下,总结如下:1.
可空类型修饰符(?):引用类型可以使用空引用表示一个不存在的值,而值类型通常不能表示为空。例如:string str=null; 是正确的,int
i=null...
分类:
其他好文 时间:
2014-04-30 20:16:58
阅读次数:
474
最差的算法:最差的算法:去重,与数组是否有序无关public void noDups(){
//从0开始遍历 for(int i=0; i<nElems-1; i++){ //与后面每一个比较 for(j=i+1; j<nElems;
j++){ ...
分类:
其他好文 时间:
2014-04-29 12:13:47
阅读次数:
427
/// /// 取文本左边内容 /// /// 文本 /// 标识符 /// 左边内容 public
static string GetLeft(string str, string s) ...
分类:
其他好文 时间:
2014-04-29 11:26:47
阅读次数:
362
public class Facade { /** * @param args 外观模式 */ One
one; Two two; Three three; public Facade() { one=new One(); two=new Two();
three=new Three()...
分类:
其他好文 时间:
2014-04-29 11:15:47
阅读次数:
238
将原起始页面View中 Index和
Controller中的HomeController删除后报这样的错误,在global.asax设置好路由后例:public static void
RegisterRoutes(RouteCollection routes) { ...
分类:
其他好文 时间:
2014-04-29 10:38:47
阅读次数:
544
PKI证书格式及转换2013年10月29日17:47PKCS 全称是 Public-Key
Cryptography Standards ,是由RSA 实验室与其它安全系统开发商为促进公钥密码的发展而制订的一系列标准,PKCS 目前共发布过 15
个标准。 常用的有:PKCS#7 Cryptogra...
分类:
其他好文 时间:
2014-04-29 10:37:45
阅读次数:
471
Java代理Internet2013年10月23日23:14 Java HTTP
ProxySettings OVERVIEW For local networks within an organization, access to the
public-domain Internet is oft...
分类:
编程语言 时间:
2014-04-29 10:36:46
阅读次数:
537
namespace Webpart.Staffing.ViewAll{
[ToolboxItemAttribute(false)] public partial class ViewAll : WebPart { public
ViewAll() {...
分类:
Web程序 时间:
2014-04-29 10:22:47
阅读次数:
435