Skip to content

Commit

Permalink
Suppress internal warning in TableNameFromDbSetConvention
Browse files Browse the repository at this point in the history
Part of #15393
  • Loading branch information
smitpatel committed Mar 24, 2020
1 parent 1aa34e4 commit febb301
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ public TableNameFromDbSetConvention(
[NotNull] ProviderConventionSetBuilderDependencies dependencies,
[NotNull] RelationalConventionSetBuilderDependencies relationalDependencies)
{
#pragma warning disable EF1001 // Internal EF Core API usage.
_sets = dependencies.SetFinder.CreateClrTypeDbSetMapping(dependencies.ContextType);
#pragma warning restore EF1001 // Internal EF Core API usage.

Dependencies = dependencies;
}
Expand Down Expand Up @@ -61,7 +63,9 @@ public virtual void ProcessEntityTypeBaseTypeChanged(
&& entityType.ClrType != null
&& _sets.ContainsKey(entityType.ClrType))
{
#pragma warning disable EF1001 // Internal EF Core API usage.
entityTypeBuilder.ToTable(_sets[entityType.ClrType].Name);
#pragma warning restore EF1001 // Internal EF Core API usage.
}
}

Expand All @@ -79,7 +83,9 @@ public virtual void ProcessEntityTypeAdded(
&& entityType.ClrType != null
&& _sets.ContainsKey(entityType.ClrType))
{
#pragma warning disable EF1001 // Internal EF Core API usage.
entityTypeBuilder.ToTable(_sets[entityType.ClrType].Name);
#pragma warning restore EF1001 // Internal EF Core API usage.
}
}

Expand Down

0 comments on commit febb301

Please sign in to comment.