Пример #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);
 }