Ejemplo n.º 1
0
 private Boolean _applyFilter(JsonStoreFilter filter, ref Params bioParams, ref String vSQL) {
   // фильтруем
   String vCondition = null;
   if (filter != null) {
     var v_prms = new Params(); 
     filter.BuildSQLConditions(ref vCondition, v_prms);
     bioParams = v_prms.Merge(bioParams, true);
   }
   Boolean vFilterIsDefined = !String.IsNullOrEmpty(vCondition);
   if (vFilterIsDefined) {
     vSQL = String.Format(csFltrSQLTemplate, vSQL, vCondition);
     return true;
   }
   return false;
 }