Beispiel #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public static IWeaverQuery InitListVar(string pName, IList <IWeaverVarAlias> pVars,
                                               out IWeaverVarAlias pVar)
        {
            pVar = new WeaverVarAlias(pName);
            string list = "";

            foreach (IWeaverVarAlias var in pVars)
            {
                list += (list == "" ? "" : ",") + var.Name;
            }

            var q = new WeaverQuery();

            q.FinalizeQuery(pVar.Name + "=[" + list + "]");
            return(q);
        }
Beispiel #2
0
 /*--------------------------------------------------------------------------------------------*/
 public static IWeaverQuery StoreResultAsVar <T>(string pName, IWeaverQuery pQuery,
                                                 out IWeaverVarAlias <T> pVar) where T : IWeaverElement
 {
     pVar = new WeaverVarAlias <T>(pName);
     return(StoreResultInner(pQuery, pVar));
 }
Beispiel #3
0
 ////////////////////////////////////////////////////////////////////////////////////////////////
 /*--------------------------------------------------------------------------------------------*/
 public static IWeaverQuery StoreResultAsVar(string pName, IWeaverQuery pQuery,
                                             out IWeaverVarAlias pVar)
 {
     pVar = new WeaverVarAlias(pName);
     return(StoreResultInner(pQuery, pVar));
 }