BACKGROUND OF THE INVENTIONThe present invention relates to data transfer across domains, and more particularly, to data transfer across a number of d...
分类:
移动开发 时间:
2014-06-18 13:55:52
阅读次数:
422
一、事务 使用IRedisClient执行事务示例: using (IRedisClient RClient = prcm.GetClient()) { RClient.Add("key",1); using (IRedisTransaction IRT =...
分类:
其他好文 时间:
2014-06-18 13:42:14
阅读次数:
208
比如,当为一个用户设置角色的时候,角色通常以CheckBoxList的形式呈现。用户和角色是多对多关系: using System.Collections.Generic;using System.ComponentModel.DataAnnotations;namespace MvcApplica...
分类:
Web程序 时间:
2014-06-18 13:16:49
阅读次数:
250
项目中引入Autofac的目的是为了实现控制反转,即IoC,Inversion of Control。控制反转可以有效的降低类之间的相互依赖关系,增加架构的弹性,降低软件复杂度。 示例代码: IProvinceRepository.csusing System;using System.Co...
分类:
Web程序 时间:
2014-06-18 13:07:58
阅读次数:
178
/* 合并排序 O(n*lgn) */ #include using namespace std; #define MAXN 100 int a[MAXN]; void Merge(int a[MAXN],int lef...
分类:
其他好文 时间:
2014-06-18 13:01:30
阅读次数:
229
/* 啥也不说了,直接套模板。。。 */ 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define N 500000 7 using namespace std; 8 9 class A...
分类:
其他好文 时间:
2014-06-18 12:53:46
阅读次数:
152
不多说,直接看代码:/*上传文件的WebService*/using System;using System.Collections;using System.Collections.Generic;using System.ComponentModel;using System.Data;usin...
分类:
Web程序 时间:
2014-06-17 21:32:10
阅读次数:
219
Asp.net 后台添加CSS、JS、Meta标签的写法,我这里写成函数方便以后使用。如果函数放在页面类中, Page参数也可以不要。 首先导入命名空间 using System.Web.UI.HtmlControls; /// /// 添加JS脚本链接 ...
分类:
Web程序 时间:
2014-06-17 21:05:15
阅读次数:
195
using System.Collections.Generic;using System.Diagnostics;using System.IO;using System.Reflection;using System.Runtime.InteropServices;using System.Te...
分类:
其他好文 时间:
2014-06-17 20:49:42
阅读次数:
281
1 #include "iostream" 2 #include "windows.h" 3 #include "cstring" 4 using namespace std; 5 6 HANDLE g_hSemThreads=INVALID_HANDLE_VALUE; 7 8 static ...