/ Published in: C#
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public static IList<DbTemplateNw> GetDistintTemplateTwo() { ISession session = ActiveRecordMediator.GetSessionFactoryHolder().CreateSession(typeof(DbTemplateNw)); criteria.SetProjection( Projections.Distinct(Projections.ProjectionList() .Add(Projections.Alias(Projections.Property("Name"), "Name")))); criteria.SetResultTransformer( IList<DbTemplateNw> result = criteria.List<DbTemplateNw>(); return result; }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)