1
我遇到类似this post的情况。我的伪代码是hql获取对象的属性是输入值的“substring”的对象
string hql = "select ai from AreaInfo as ai where ai.PhoneSegment is substring of :InputPhoneNumber";
使用像,因为什么样的正在做的是
string hql = "select ai from AreaInfo as ai where :InputPhoneNumber is substring of ai.PhoneSegment";
所以不会做的伎俩,什么是执行此任务的正确语法?我的环境是NHibernate上的Castle ActiveRecord。提前致谢。