Exemple #1
0
 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);
 }
Exemple #2
0
 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));
 }
Exemple #3
0
 List <object[]> IObjectLayer.SelectData(Session session, ObjectsQuery query, CriteriaOperatorCollection properties, CriteriaOperatorCollection groupProperties, CriteriaOperator groupCriteria)
 {
     return(base.SelectData(session, PatchCriteria(query), properties, groupProperties, groupCriteria));
 }