提交 31411aa9 编写于 作者: S sam.saffron@gmail.com

merge

......@@ -25,9 +25,9 @@ private static ISessionFactory SessionFactory
}
}
public static ISession OpenSession()
public static IStatelessSession OpenSession()
{
return SessionFactory.OpenSession();
return SessionFactory.OpenStatelessSession();
}
}
}
......@@ -177,6 +177,9 @@ public void Run(int iterations)
.Query<Post>()
.Where(p => p.Id == id).First(), "NHibernate LINQ");
var nhSession5 = NHibernateHelper.OpenSession();
tests.Add(id => nhSession5.Get<Post>(id), "NHibernate Session.Get");
// bltoolkit
var db1 = new DbManager(Program.GetOpenConnection());
tests.Add(id => db1.SetCommand("select * from Posts where Id = @id", db1.Parameter("id", id)).ExecuteList<Post>(), "BLToolkit");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册