string hql = @"select sum(REPLENISH_AMONUT) from TUSER_REPLENISH ";
ScalarQuery<decimal> sq = new ScalarQuery<decimal>(typeof(TuserReplenish), hql);
decimal currentAmount= sq.Execute();
然后就执行错误
异常详细信息: NHibernate.Hql.Ast.ANTLR.QuerySyntaxException: TUSER_REPLENISH is not mapped [select sum(REPLENISH_AMONUT) from TUSER_REPLENISH,
我参考了 ActiveRecord官网的hql写法都一样,不知那个要怎么映射,望指教(本人新学), 谢谢!