Exemplo n.º 1
0
 private Dictionary<string, object> GetParamsFromWhere(string whereKey,Interface.WATFContext context)
 {
     Dictionary<string, object> rtn = new Dictionary<string, object>();
     if (!string.IsNullOrEmpty(whereKey))
     {
         string[] paramList = whereKey.Split(';');
         foreach (string param in paramList)
         {
             string[] keyValue = param.Split('=');
             if (keyValue.Length == 2)
             {
                 rtn.Add(keyValue[0], context.GetVar(keyValue[1]));
             }
         }
     }
     return rtn;
 }