private ObjectsQuery PatchCriteria(ObjectsQuery query) { if (typeof(IClientId).IsAssignableFrom(query.ClassInfo.ClassType)) { //the idea here is to query with the owner of the information var test = 1; } // query.Criteria = GroupOperator.Combine(GroupOperatorType.And, query.Criteria, new BinaryOperator("CompanyID", "test")); return(query); }
object IObjectLayer.SelectDataAsync(Session session, ObjectsQuery query, CriteriaOperatorCollection properties, CriteriaOperatorCollection groupProperties, CriteriaOperator groupCriteria, AsyncSelectDataCallback callback) { return(base.SelectDataAsync(session, PatchCriteria(query), properties, groupProperties, groupCriteria, callback)); }
List <object[]> IObjectLayer.SelectData(Session session, ObjectsQuery query, CriteriaOperatorCollection properties, CriteriaOperatorCollection groupProperties, CriteriaOperator groupCriteria) { return(base.SelectData(session, PatchCriteria(query), properties, groupProperties, groupCriteria)); }