Skip to content

Commit

Permalink
Ignore warnings in Cosmos tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcvickers committed Dec 23, 2022
1 parent a0820dd commit 8e1a4dc
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,13 @@ public abstract class ValueConvertersEndToEndFixtureBase : SharedStoreFixtureBas
protected override string StoreName
=> "ValueConvertersEndToEnd";

public override DbContextOptionsBuilder AddOptions(DbContextOptionsBuilder builder)
=> base.AddOptions(builder).ConfigureWarnings(
w => w.Ignore(
CoreEventId.MappedEntityTypeIgnoredWarning,
CoreEventId.MappedPropertyIgnoredWarning,
CoreEventId.MappedNavigationIgnoredWarning));

protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext context)
=> modelBuilder.Entity<ConvertingEntity>(
b =>
Expand Down

0 comments on commit 8e1a4dc

Please sign in to comment.