The Query_Executing method has a param of type QueryExecutingDescriptor, can this be used for massaging the query? RRS feed

  • Question

  • partial void Query_Executing(QueryExecutingDescriptor queryDescriptor)

    As you can see the Query_Executing method (through which all queries pass) has a QueryExecutingDescriptor parameter.

    I don't see immediately how, but I'm wondering if there is a way to alter a passing query by means of this event? {of course the query is passed afterwards to an entity specific event PreprocessQuery and Filter, but I'm trying to figure out if there is a way to introduce filter logic applying to all entity types}.

    If not, what could be a potential usage for the Query_Executing method?


    paul van bladel

    Wednesday, September 12, 2012 10:20 AM