Skip to content

Commit

Permalink
Ignore new test properties for SQL Server
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed May 28, 2021
1 parent 1341bcd commit a5f75b1
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
modelBuilder.Entity<LocustHighCommand>().Property(l => l.Id).ValueGeneratedNever();

modelBuilder.Entity<City>().Property(g => g.Location).HasColumnType("varchar(100)");

// No support yet for DateOnly/TimeOnly (#24507)
modelBuilder.Entity<Mission>(
b =>
{
b.Ignore(m => m.Date);
b.Ignore(m => m.Time);
});
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,20 @@ protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext con
modelBuilder.Entity<City>().Property(g => g.Location).HasColumnType("varchar(100)");

// Full-text binary search
modelBuilder.Entity<Mission>()
.Property<byte[]>("BriefingDocument");
modelBuilder.Entity<Mission>(
b =>
{
b.Property<byte[]>("BriefingDocument");
b.Property<string>("BriefingDocumentFileExtension").HasColumnType("nvarchar(16)");
});

modelBuilder.Entity<Mission>()
.Property<string>("BriefingDocumentFileExtension")
.HasColumnType("nvarchar(16)");
// No support yet for DateOnly/TimeOnly (#24507)
modelBuilder.Entity<Mission>(
b =>
{
b.Ignore(m => m.Date);
b.Ignore(m => m.Time);
});
}

protected override void Seed(GearsOfWarContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext con
base.OnModelCreating(modelBuilder, context);

modelBuilder.Entity<City>().Property(g => g.Location).HasColumnType("varchar(100)");

// No support yet for DateOnly/TimeOnly (#24507)
modelBuilder.Entity<Mission>(
b =>
{
b.Ignore(m => m.Date);
b.Ignore(m => m.Time);
});
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8912,6 +8912,91 @@ ELSE NULL
END, [t].[Note]");
}

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_DateOnly_Year(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_DateOnly_Month(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_DateOnly_Day(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_DateOnly_DayOfYear(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_DateOnly_DayOfWeek(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_DateOnly_AddYears(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_DateOnly_AddMonths(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_DateOnly_AddDays(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_TimeOnly_Hour(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_TimeOnly_Minute(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_TimeOnly_Second(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_TimeOnly_Millisecond(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_TimeOnly_AddHours(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_TimeOnly_AddMinutes(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_TimeOnly_Add_TimeSpan(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_TimeOnly_IsBetween(bool async)
=> Task.CompletedTask;

[ConditionalTheory] // #24507
[MemberData(nameof(IsAsyncData))]
public override Task Where_TimeOnly_subtract_TimeOnly(bool async)
=> Task.CompletedTask;

private void AssertSql(params string[] expected)
=> Fixture.TestSqlLoggerFactory.AssertBaseline(expected);
}
Expand Down

0 comments on commit a5f75b1

Please sign in to comment.