Hi, I ended creating a class that implements IDataProvider.
Inside this class I have some properties:
-Service (could also be a DAO)
-filter properties.
-methods:
And GenericDetachableModel:
When the GenericDataProvider class is constructed, I pass the service (or dao) and the filter params.
Hope this helps.