/// <summary> /// Odpytuje funkcję wydając wyniki w postaci wyliczenia GrWAtt_Value /// </summary> /// <returns></returns> public IEnumerable <GrWAtt_Value> Ask(BlaDBVariantDefinition var) { var objIDindex = -1; foreach (var row in __bind.ExecuteQuery(__commandText, _.I.GrunaTemplater.PrepareCmd(__procArgTmpl, var))) { if (objIDindex < 0) { objIDindex = DBConnectionPool.FieldIndices(new[] { __objIDField }, row).First(); } var objID = row.GetIntNumber(objIDindex); foreach (var att in __attsources) { var a = att.GetValue(objID, row); if (a != null) { yield return(a); } } } //yield break; }
public IEnumerable <IDataRecord> Query(DBConnectionPool pool, BlaDBVariantDefinition variantDef) { return(pool.ExecuteQuery( __GrunaCommand(), _.I.GrunaTemplater.PrepareCmd(__lx7121_ArgTmpl, variantDef))); }
public JohEntityReader(DBConnectionPool conn) { __entities = conn.ExecuteQuery(__QUERY).Select(j => new JohEntity(j)).ToList(); }