0
下面的查詢使用了ExecuteUpdate。我想說的方法來尊重會話過濾器。這可能嗎?是否有可能將ExecuteUpdate設置爲尊重會話過濾器?
//This line seems to make no effect.
_session.EnableFilter(FilterName).SetParameter(FilterParam, Value);
_session.CreateQuery(String.Format("DELETE FROM {0} WHERE Id IN (:idList)", object.Name))
.SetParameterList("idList", arrayOfIds)
.ExecuteUpdate();
感謝,