本篇使用Repository设计MVC项目,使用Ninject作为DI容器,借助Moq进行单元测试。 模型和EF上下文 模型很简单: public class Foo { public int Id { get; set; } public string Name { get; set; } }EF...
分类:
Web程序 时间:
2014-06-27 13:13:18
阅读次数:
303
今天开始研究mysql,在网上搜了一下资料,都是要安装这个,安装那个,很麻烦。经过一直摸索、测试,得到一个快速的方法,很实用,只是稳定性有待发现。先去下载:http://www.justsoftwaresolutions.co.uk/delphi/dbexpress_and_mysql_5.html...
分类:
数据库 时间:
2014-06-27 13:12:39
阅读次数:
177
矩阵和图像的操作(1)cvCalcCovarMatrix函数其结构void cvCalcCovarMatrix(计算给定点的均值和协方差矩阵 const CvArr** vects,//给定向量 int count,//给定向量的组数 CvArr* cov_mat,//结果矩阵 CvArr* avg...
分类:
其他好文 时间:
2014-06-27 13:11:27
阅读次数:
250
window.onload事件:当文档和其所有外部资源(如图片)完全加载并显示给用户时就会触发它。window.onload = function (){ //当加载完当前页面和其所有外部资源(如图片)后,执行这个函数}window.onunload事件:当用户离开当前页面时会触发该事件win...
分类:
Web程序 时间:
2014-06-27 13:10:47
阅读次数:
328
1.下载SQL Server Driver for PHP,解压缩后,将php_pdo_sqlsrv_53_ts_vc9.dll和php_sqlsrv_53_ts_vc9.dll拷贝到php-->ext文件夹下2.修改php.ini 文件,extension=php_pdo_sqlsrv_53_ts...
分类:
数据库 时间:
2014-06-27 13:10:10
阅读次数:
250
package com.photoann.core.util;import java.io.BufferedInputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundExcept...
分类:
其他好文 时间:
2014-06-27 13:09:31
阅读次数:
275
在IOS开发中经常会用到回调的情况,下面介绍如何用block实现回调。1 #import 2 3 @interface BLock : NSObject4 5 + (void)getBlock:(void (^)(NSString *))someblock;6 7 @endBLock.h 1 #im...
分类:
移动开发 时间:
2014-06-27 13:05:40
阅读次数:
159
http://en.wikipedia.org/wiki/SyslogSyslogis a standard forcomputer message logging. It permits separation of the software that generates messages from...
分类:
其他好文 时间:
2014-06-27 13:05:02
阅读次数:
457
(1)取得服务端当前时间 jquery对象.load(url,sendData,function(backData,textStatus,xhr){... ...}) load():如果无参的话,就以GET方式发送 如果有参的话,就以POST方式发送 ...
分类:
Web程序 时间:
2014-06-27 13:04:26
阅读次数:
211
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:
其他好文 时间:
2014-06-27 13:03:49
阅读次数:
136