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 14f66e9
Show file tree
Hide file tree
Showing 3 changed files with 29 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);
});
}
}
}

0 comments on commit 14f66e9

Please sign in to comment.