我正在尝试在不加载更新值的情况下进行快速更新查询我尝试使用此代码
public void Save(int PlayerID, string Column, object Value)
{
using (ISession session = new SessionManager(_connectionString).Open())
{
IQuery query = session.CreateQuery("UPDATE Players SET " + Column + "= :newValue WHERE PlayerID=:PlayerID");
query.SetParameter("newValue", Column);
query.SetParameter("PlayerID", PlayerID);
query.ExecuteUpdate();
}
}
但我得到错误 Player is not mapped while its actual mapped and I already used it in another statements。