我在编写Hql查询时遇到了一个问题。select查询基于“Type”列中的值。如果“类型”列中的值为0,则基于Column1中的select查询的值。如果类型列中的值为1,则select查询将基于column2中的值。我已经使用'case when then‘is SQL成功地编写了查询。但是当用作<em
下面是我的SQL查询:(select attributeid from advis_productattributes_productswhere productid=1);string hql = @"select p from ProductAttributes_Products p.ProductId:id";
var query = new Simp