Skip to content

Commit

Permalink
Implement functional migration tests
Browse files Browse the repository at this point in the history
Closes #19039
  • Loading branch information
roji committed Jan 23, 2020
1 parent d42926c commit 5aa0783
Show file tree
Hide file tree
Showing 27 changed files with 6,800 additions and 6,530 deletions.
2 changes: 2 additions & 0 deletions src/EFCore.Relational/Scaffolding/Metadata/DatabaseColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,7 @@ public DatabaseColumn([NotNull] DatabaseTable table, [NotNull] string name, [Not
/// the database will not generate values.
/// </summary>
public virtual ValueGenerated? ValueGenerated { get; set; }

public override string ToString() => Name;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,7 @@ public DatabaseForeignKey(
/// is deleted, or <c>null</c> if there is no action defined.
/// </summary>
public virtual ReferentialAction? OnDelete { get; set; }

public override string ToString() => Name ?? "<UNKNOWN>";
}
}
2 changes: 2 additions & 0 deletions src/EFCore.Relational/Scaffolding/Metadata/DatabaseIndex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,7 @@ public DatabaseIndex([NotNull] DatabaseTable table, [CanBeNull] string? name)
/// The filter expression, or <c>null</c> if the index has no filter.
/// </summary>
public virtual string? Filter { get; [param: CanBeNull] set; }

public override string ToString() => Name ?? "<UNKNOWN>";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ public DatabasePrimaryKey([NotNull] DatabaseTable table, [CanBeNull] string? nam
/// The ordered list of columns that make up the primary key.
/// </summary>
public virtual IList<DatabaseColumn> Columns { get; }

public override string ToString() => Name ?? "<UNKNOWN>";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,7 @@ public DatabaseSequence([NotNull] DatabaseModel database, [NotNull] string name)
/// Indicates whether or not the sequence will start over when the max value is reached, or <c>null</c> if not set.
/// </summary>
public virtual bool? IsCyclic { get; set; }

public override string ToString() => Schema == null ? Name : $"{Schema}.{Name}";
}
}
2 changes: 2 additions & 0 deletions src/EFCore.Relational/Scaffolding/Metadata/DatabaseTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,7 @@ public DatabaseTable([NotNull] DatabaseModel database, [NotNull] string name)
/// The list of foreign key constraints defined on the table.
/// </summary>
public virtual IList<DatabaseForeignKey> ForeignKeys { get; }

public override string ToString() => Schema == null ? Name : $"{Schema}.{Name}";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ public DatabaseUniqueConstraint([NotNull] DatabaseTable table, [CanBeNull] strin
/// The ordered list of columns that make up the constraint.
/// </summary>
public virtual IList<DatabaseColumn> Columns { get; }

public override string ToString() => Name ?? "<UNKNOWN>";
}
}
Loading

0 comments on commit 5aa0783

Please sign in to comment.