return Session
        .CreateQuery("select from Customer c where c.Name.Firstname=:fn and c.Name.Lastname=:ln")
       .SetString("fn", firstname)
       .SetString("ln", lastname)
       .List<Customer>();

上段代码执行的时候出现引发类型为 Antlr.Runtime.NoViableAltException 的异常

解决办法: 把select 去掉

相关文章:

  • 2021-05-25
  • 2022-12-23
  • 2021-12-31
  • 2021-12-29
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
猜你喜欢
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
相关资源
相似解决方案