public string GetNews() { _builder.Select("News", new List <string>() { "Id", "Name", "Content" }); _builder.Where("Id", 1); return(_builder.GetSQL()); }
public async Task <T> GetAsync(long id) { using (var connection = _connectionProvider.GetConnection()) { return(await connection.QuerySingleOrDefaultAsync <T>(_queryBuilder.Select(id))); } }