1.常用db.Entry(实体).State = EntityState.Modified;db.SaveChanges();2.指定更新db.Configuration.ValidateOnSaveEnabled = false;db.TUser.Attach(实体);ObjectStateEnt...
分类:
Web程序 时间:
2014-10-29 18:30:41
阅读次数:
230
参考:http://blog.csdn.net/sunmenggmail/article/details/8952712 http://www.cnblogs.com/fstang/archive/2013/04/20/3032097.html我希望要一个ArrayList,类似C++中的pair....
分类:
编程语言 时间:
2014-10-29 14:39:01
阅读次数:
258
1、 HashMap与HashTable的区别:(1)HashMap允许将null作为一个entry的key或者value,而Hashtable不允许。当get()方法返回null值时,即可以表示HashMap中没有该键,也可以表示该键所对应的值为null。因此,在HashMap中不能由get()方...
分类:
其他好文 时间:
2014-10-29 12:25:06
阅读次数:
156
按照“?>”命令执行命令即可,“#”都是注解。
#-----------centOS6.5 installs rabbitmq-server ---------------------
#Installation using repository
#1. Adding repository entry
#To add Erlang Solutions repository (incl...
分类:
其他好文 时间:
2014-10-29 00:20:42
阅读次数:
313
PLU分解的好处是,可以将Ax=b的矩阵,转换成Ly=b, Ux = y
的形式,当我们改变系数矩阵b时,此时由于矩阵L和U均是固定
的,所以总能高效的求出矩阵的解。
// LU.cpp : Defines the entry point for the console application.
//
/********************************************...
分类:
其他好文 时间:
2014-10-26 00:26:42
阅读次数:
196
先看看hashmap在整个Collection中的位置
HashMap中存储数据的结构是
/**
* The table, resized as necessary. Length MUST Always be a power of two.
*/
transient Entry[] table;
上面的英文就不用说了。
原来基础的存储结构式En...
分类:
其他好文 时间:
2014-10-24 14:42:43
阅读次数:
223
国际QQ为例:#!/usr/bin/env xdg-open[Desktop Entry]Name=QQ InternationalName[zh_CN]=QQ国际版Icon=qqintl Exec=/usr/bin/wine-qqintlStartupNotify=trueTerminal=fa....
分类:
系统相关 时间:
2014-10-24 12:24:05
阅读次数:
201
说是每学点知识就记录下,前段时间也没弄,还是自己懒惰了,今天逼着自己写写,当是在复习下,废话少说,进入正题。windows的服务程序 需要SERVICE_TABLE_ENTRY这个结构体(描述服务名和对应启动的函数eg:ServiceMain),然后StartServiceCtrlDispatche...
分类:
编程语言 时间:
2014-10-22 23:41:06
阅读次数:
471
REQUIREJS APIThis is theRequireJS 2.0 API. If you want 1.0:Link to 1.0.Usage§§ 1-1.3Load JavaScript Files§ 1.1data-main Entry Point§ 1.2Define a Modul...
分类:
Web程序 时间:
2014-10-22 20:14:40
阅读次数:
348
// RemoveComments.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include using namespace std;void r...
分类:
编程语言 时间:
2014-10-22 17:55:02
阅读次数:
203