/ Published in: C#

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
