Beispiel #1
0
        public async Task <bool> ExistsAsync(int id)
        {
            string existsByIdQuery          = _sqlGeneratorBase.BuildExistsByIdSqlCommand(typeof(TEntity), nameof(Entity.Id));
            IEnumerable <TEntity> resultSet = await _connection.QueryAsync <TEntity>(existsByIdQuery, new { Id = id }).ConfigureAwait(false);

            return(resultSet.Any());
        }