Posted By

wearetherock on 06/03/10


Tagged

activerecord castle


Versions (?)

CastleActiveRecord SlicedFindAllByName


 / Published in: C#
 

  1. public static DbTemplateNw[] SlicedFindAllByName(String name, int count)
  2. {
  3. DbTemplateNw[] result = (DbTemplateNw[]) SlicedFindAll(typeof(DbTemplateNw), 0, 10,
  4. new Order[] { new Order("Name", true) }, Expression.Eq("Name", name));
  5. return result;
  6. }

Report this snippet  

You need to login to post a comment.