0

I would like to implement IndexOf for ActiveRecord mapped class by using ordering and custom filtering criteria something like this:

long MyEtityType.IndexOf(
    MyEntityType myEntityInstance,
    DetachedCriteria filter,
    String propertyNameOrderBy,
    Boolean isAscending
)

What is the best way to do this ? Can I use linq something like this:

MyEntityType.Querable.Where.IndexOf

Does this provide correct SQL or will it fetch all items?

Yuck
  • 49,664
  • 13
  • 105
  • 135
user861768
  • 175
  • 1
  • 12

0 Answers0