public string CreateTable(TableDescription table) { return _TableDefinition(table); }
private string _TableElementList(TableDescription table) { return string.Format( "({0})", string.Join( ", ", Enumerable.Empty<string>() .ConcatScalar(_ColumnDefinition(table.primaryKey, ColumnSpecific.PrimaryKey, Specific.None)) .Concat(from column in table.columns select _ColumnDefinition(column, ColumnSpecific.None, Specific.None)) .ToArray() ) ); }
protected CreateTableCommand(int num, XElement inner) : base(num) { this.table = XMLParser.ParseTableDescription(inner); }
private string _TableDefinition(TableDescription table) { return string.Format( "CREATE TABLE {0} {1}", nameEscaper(table.table), _TableElementList(table) ); }
public void CreateTable(TableDescription table) { this.traits.CreateTable(this.CreateTextCommand, table); }