//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ 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); }
/*--------------------------------------------------------------------------------------------*/ 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)); }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public static IWeaverQuery StoreResultAsVar(string pName, IWeaverQuery pQuery, out IWeaverVarAlias pVar) { pVar = new WeaverVarAlias(pName); return(StoreResultInner(pQuery, pVar)); }