在使用Entity Framework为主从表添加数据,当一个表添加数据成功,另一个表添加数据失败,这时候就需要用到事务回滚。 比如有以下关系的2张表。 客户端使用TransactionScope类可以实现事务回滚。 class Program { static void Main(string[]...
分类:
其他好文 时间:
2014-09-10 22:23:51
阅读次数:
260
yum-yinstalltimetracerouteboost-program-optionsdialogfpinggraphvizgraphviz-gdhttpdlibeventlibmcryptlibtool-ltdlmod_fcgidmysql-servernet-snmpnet-snmp-utilspangopatchperl-Net-SNMPphpphp-mbstringphp-pdophp-gdrsyncuuidxinetdxorg-x11-server-Xvfbpython-ldapradius..
分类:
其他好文 时间:
2014-09-10 02:50:02
阅读次数:
315
由于出差需要,今天在Mac OS X的Win 7虚拟机上安装了MySQL的最新版本:mysql-5.6.20-winx64.msi,结果发现安装完以后没有任何反应,开始菜单里面的CommandLine Shell也无法启动。虽然问题很简单,但估计会有很多朋友遇到类似问题,所以总结一下解决方案:
看网上有人介绍,在MySQL的安装目录下,例如我这里的:C:\Program Files\MySQ...
分类:
数据库 时间:
2014-09-09 23:06:49
阅读次数:
287
Today I attended a meeting of reviewing code, and I learned a lot from it. In the discuss, we found out a problem that our program didn't have a good ...
分类:
其他好文 时间:
2014-09-09 22:49:59
阅读次数:
220
源起:
C++ Primer 第五版,Exercise 9.38
Write a program to explorer how vectors grow in the library you use.
环境:
WIN 7 + VS 2008 32bit
测试代码:
#include
#include
#include
using namespace std;
...
分类:
编程语言 时间:
2014-09-09 21:34:39
阅读次数:
432
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
...
分类:
其他好文 时间:
2014-09-09 18:23:19
阅读次数:
154
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace runnian
{
class Program
{
static void Main(stri...
分类:
其他好文 时间:
2014-09-09 18:22:49
阅读次数:
193
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace maopao
{
class Program
{
static void Main(strin...
分类:
其他好文 时间:
2014-09-09 18:22:39
阅读次数:
163
无法启动程序D:\build\debug\ALL_BUILD 系统找不到指定文件解决办法:将project_inliers工程设置为启动项目 找到项目右击--设为启动项目。将project_inliers工程设置为启动项目解决办法:你得把C:\Program Files (x86)\PCL 1.6....
分类:
其他好文 时间:
2014-09-09 18:09:19
阅读次数:
700
-v var=val --assign var=val Assign the value val to the variable var, before execution of the program begins. Suc...
分类:
其他好文 时间:
2014-09-09 17:56:49
阅读次数:
202