예제 #1
0
 public string CreateTable(TableDescription table)
 {
     return _TableDefinition(table);
 }
예제 #2
0
 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()
         )
     );
 }
예제 #3
0
 protected CreateTableCommand(int num, XElement inner)
     : base(num)
 {
     this.table = XMLParser.ParseTableDescription(inner);
 }
예제 #4
0
 private string _TableDefinition(TableDescription table)
 {
     return string.Format(
         "CREATE TABLE {0} {1}",
         nameEscaper(table.table),
         _TableElementList(table)
     );
 }
예제 #5
0
 public void CreateTable(TableDescription table)
 {
     this.traits.CreateTable(this.CreateTextCommand, table);
 }