public virtual IEnumerable <EpcisEvent> Perform(EpcisQuery query) { var sqlParams = new Dictionary <string, object>(); var sqlQuery = CreateSqlQuery(query, sqlParams); return(_eventsRetriever.Query(sqlQuery, sqlParams)); }
public virtual IEnumerable <EpcisEvent> Perform(XElement parameters) { var epc = parameters.Elements().Single(); if (epc == null) { throw new QueryParameterException("Epc query is expected at this point."); } return(_eventsRetriever.Query(SqlQuery, new { Epc = epc.Value })); }