ServiceStack.Ormlit 事务
摘要:
应该使用这个方法开启事务public static IDbTransaction OpenTransaction(this IDbConnection dbConn) { return new OrmLiteTransaction(dbConn, dbConn.BeginTransaction()); }或者IDbConnection对象用OrmLiteConnectionFactory来创建var factory = new OrmLiteConnectionFactory(ConnectionString, SqlServerDialect.Provider... 阅读全文
posted @ 2014-03-26 15:01 少明 阅读(679) 评论(0) 推荐(1) 编辑