不管怎么说,要这么做?
var hql = "insert into Entites.SapDetail (column1, column2) VALUES ('200', '131758'), ('200', '131758')";
session.CreateQuery(hql).ExecuteUpdate();发布于 2013-06-26 10:55:58
您可以使用SQL查询来完成插入:
session.createSqlQuery (sql).executeUpdate ();如果您希望在查询中使用实体,还可以查看SQLQuery的addEntity()方法。
https://stackoverflow.com/questions/17310138
复制相似问题