Skip to content

Commit

Permalink
Make test collation property abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Apr 15, 2020
1 parent 68e3813 commit 8951f05
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Microsoft.EntityFrameworkCore
{
public class MigrationsTestBase<TFixture> : IClassFixture<TFixture>
public abstract class MigrationsTestBase<TFixture> : IClassFixture<TFixture>
where TFixture : MigrationsTestBase<TFixture>.MigrationsFixtureBase, new()
{
private readonly ISqlGenerationHelper _sqlGenerationHelper;
Expand Down Expand Up @@ -1362,9 +1362,7 @@ private class Person
public int Age { get; set; }
}

protected virtual string NonDefaultCollation
=> throw new NotSupportedException(
$"Providers must override the '{nameof(NonDefaultCollation)}' property with a valid, non-default collation name for your database.");
protected abstract string NonDefaultCollation { get; }

protected virtual DbContext CreateContext() => Fixture.CreateContext();

Expand Down

0 comments on commit 8951f05

Please sign in to comment.