public IEnumerable <TableRowDTO> GetTable(string competitioName, CompetitionTableType tableType) { var games = gamesService.GetFinishedCompetitionGames(competitioName); ITableBuilder builder = TableBuilderFactory.CreateTableBuilder(tableType); return(builder.Build(games)); }
public void CreateTable(ITableBuilder tableBuilder) { Guard.ArgumentNotNull(tableBuilder, nameof(tableBuilder)); foreach (string statement in tableBuilder.Build()) { this.Connection.Execute(statement); //execute create table and other DML Statements! } }
public ReportBuilder AddTable(ITableBuilder tableBuilder) { if (report.Tables == null) { report.Tables = new List <PdfTableModel>(); } report.Tables.Add(tableBuilder.Build(HasAlternatingRowBackgroundColor, AlternatingRowBackgroundColor)); return(this); }
protected void AddTable(Package package, string mainTableId, ITableBuilder mainTableBuilder, string headersTableId = null, ITableBuilder headersTableBuilder = null) { var mainTable = mainTableBuilder.Build(); if (mainTable != null) { package.PrimaryTableIds.Add(mainTableId); package.Tables.Add(mainTableId, mainTable); if (!string.IsNullOrWhiteSpace(headersTableId) && headersTableBuilder != null) { mainTable.Definition.HeaderTableId = headersTableId; var headersTable = headersTableBuilder.Build(); package.Tables.Add(headersTableId, headersTable); } } }
public DealerBuilder(IDeckBuilder deckBuilder, ITableBuilder tableBuilder) { _deck = deckBuilder.Build(); _table = tableBuilder.Build(); }