private void CompareColumns(TableColumn colSpec, ColumnSchema col) { Assert.AreEqual(colSpec.Name, col.Name); Assert.AreEqual(colSpec.NativeType.ToLower(), col.NativeType.ToLower()); Assert.AreEqual(colSpec.DatabaseType, col.DataType); Assert.AreEqual(colSpec.InPrimaryKey, col.IsPrimaryKeyMember); Assert.AreEqual(colSpec.IsUnique, col.IsUnique); Assert.AreEqual(0, col.Scale); Assert.AreEqual(0, col.Precision); Assert.AreEqual(0, col.Size); }
private void CompareColumns(TableColumn colSpec, ViewColumnSchema col) { Assert.AreEqual(colSpec.Name, col.Name); Assert.AreEqual(colSpec.NativeType.ToLower(), col.NativeType.ToLower()); Assert.AreEqual(colSpec.DatabaseType, col.DataType); Assert.AreEqual(0, col.Scale); Assert.AreEqual(0, col.Precision); Assert.AreEqual(0, col.Size); }
public TableSpec(String name, TableColumn[] columns, TableIndex[] indexes, ForeignKey[] fkeys) { Name = name; Columns = columns; Indexes = indexes; ForeignKeys = fkeys; }