Esempio n. 1
0
 /// <summary>
 /// Actual executable method of database query which returns data from database.
 /// </summary>
 /// <param name="session">The database connection session.</param>
 /// <param name="cancellationToken">Operation cancellation token.</param>
 public virtual async Task <IEnumerable <T> > ExecuteAsync(IDatabaseSession session, CancellationToken cancellationToken) => await session.QueryAsync <T>(this.SqlStatement, this.Parameters, cancellationToken);