摘要:
return Session .CreateQuery("select from Customer c where c.Name.Firstname=:fn and c.Name.Lastname=:ln") .SetString("fn", firstname) .SetString("ln", lastname) .List();上段代码执行的时候出现引发类型为 Antlr.Runtime.NoViableAltException 的异常解决办法: 把select 去掉 阅读全文