摘要:
string query1 = "select MAX(g.Stars) ,new AuthorDTO(MAX(cast(g.GroupName as string))//不知道为什么不能加在聚合函数里面,也不能加到Groupfrom Group g join g.authors auths group by g.GroupName";下面方式可以:string query1 = "select g.Stars,new AuthorDTO(cast(g.GroupName as string)//需要在Group.hbm.xml里面添加<import cla 阅读全文
摘要:
linq的不支持: IQueryable<Model.MessageBoard> iq = new ManagerBase<Model.MessageBoard, Model.MessageBoard>().Query();IQueryable<Model.Author> iq2 = new ManagerBase<Model.Author, Model.Author>().Query();IQueryable<Model.Order> iq2 = new ManagerBase<Model.Order, Model.Order 阅读全文