From 14f66e9dc7be6e08388c22a17f74d0f86c699516 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Fri, 28 May 2021 16:03:07 +0200 Subject: [PATCH] Ignore new test properties for SQL Server --- .../Query/GearsOfWarODataContext.cs | 8 ++++++++ .../Query/GearsOfWarQuerySqlServerFixture.cs | 18 +++++++++++++----- .../TPTGearsOfWarQuerySqlServerFixture.cs | 8 ++++++++ 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/test/EFCore.OData.FunctionalTests/Query/GearsOfWarODataContext.cs b/test/EFCore.OData.FunctionalTests/Query/GearsOfWarODataContext.cs index a187fd36638..34742e9fff0 100644 --- a/test/EFCore.OData.FunctionalTests/Query/GearsOfWarODataContext.cs +++ b/test/EFCore.OData.FunctionalTests/Query/GearsOfWarODataContext.cs @@ -92,6 +92,14 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) modelBuilder.Entity().Property(l => l.Id).ValueGeneratedNever(); modelBuilder.Entity().Property(g => g.Location).HasColumnType("varchar(100)"); + + // No support yet for DateOnly/TimeOnly (#24507) + modelBuilder.Entity( + b => + { + b.Ignore(m => m.Date); + b.Ignore(m => m.Time); + }); } } } diff --git a/test/EFCore.SqlServer.FunctionalTests/Query/GearsOfWarQuerySqlServerFixture.cs b/test/EFCore.SqlServer.FunctionalTests/Query/GearsOfWarQuerySqlServerFixture.cs index a66cd5abbde..537a3ceb53b 100644 --- a/test/EFCore.SqlServer.FunctionalTests/Query/GearsOfWarQuerySqlServerFixture.cs +++ b/test/EFCore.SqlServer.FunctionalTests/Query/GearsOfWarQuerySqlServerFixture.cs @@ -18,12 +18,20 @@ protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext con modelBuilder.Entity().Property(g => g.Location).HasColumnType("varchar(100)"); // Full-text binary search - modelBuilder.Entity() - .Property("BriefingDocument"); + modelBuilder.Entity( + b => + { + b.Property("BriefingDocument"); + b.Property("BriefingDocumentFileExtension").HasColumnType("nvarchar(16)"); + }); - modelBuilder.Entity() - .Property("BriefingDocumentFileExtension") - .HasColumnType("nvarchar(16)"); + // No support yet for DateOnly/TimeOnly (#24507) + modelBuilder.Entity( + b => + { + b.Ignore(m => m.Date); + b.Ignore(m => m.Time); + }); } protected override void Seed(GearsOfWarContext context) diff --git a/test/EFCore.SqlServer.FunctionalTests/Query/TPTGearsOfWarQuerySqlServerFixture.cs b/test/EFCore.SqlServer.FunctionalTests/Query/TPTGearsOfWarQuerySqlServerFixture.cs index 9791db25aca..03039c5c131 100644 --- a/test/EFCore.SqlServer.FunctionalTests/Query/TPTGearsOfWarQuerySqlServerFixture.cs +++ b/test/EFCore.SqlServer.FunctionalTests/Query/TPTGearsOfWarQuerySqlServerFixture.cs @@ -16,6 +16,14 @@ protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext con base.OnModelCreating(modelBuilder, context); modelBuilder.Entity().Property(g => g.Location).HasColumnType("varchar(100)"); + + // No support yet for DateOnly/TimeOnly (#24507) + modelBuilder.Entity( + b => + { + b.Ignore(m => m.Date); + b.Ignore(m => m.Time); + }); } } }