Example #1
0
        public async Task <IEnumerable <ItemIdEntity> > GetItemIdData(string prefix)
        {
            Condition.Requires(prefix, nameof(prefix)).IsNotNullOrEmpty();

            var result = await _connection.ExecuteAsync(async conn =>
                                                        await conn.QueryAsync <ItemIdEntity>(
                                                            Schema.Queries.IdTableByPrefixQuery,
                                                            new
            {
                Prefix = prefix
            },
                                                            null,
                                                            _connection.CommandTimeout,
                                                            CommandType.Text).ConfigureAwait(false)).ConfigureAwait(false);

            return(result);
        }