Skip to content

Commit

Permalink
Update exception messages (#22333)
Browse files Browse the repository at this point in the history
Resolves #22266
Part of #7201
  • Loading branch information
smitpatel committed Aug 31, 2020
1 parent faa3ea2 commit b87a5fb
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 69 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/EFCore.Relational/Properties/RelationalStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
<value>The 'DbConnection' is currently in use. The connection can only be changed when the existing connection is not being used.</value>
</data>
<data name="ClientGroupByNotSupported" xml:space="preserve">
<value>Client side GroupBy is not supported.</value>
<value>The given GroupBy pattern is not translatable. Call AsEnumerable before GroupBy to evaluate it locally.</value>
</data>
<data name="ComputedColumnSqlUnspecified" xml:space="preserve">
<value>The column '{column}' on table {table} has unspecified computed column SQL. Specify the SQL before using EF Core to create the database schema.</value>
Expand Down Expand Up @@ -492,7 +492,7 @@
<comment>Debug RelationalEventId.MigrateUsingConnection string string</comment>
</data>
<data name="LogMigrationAttributeMissingWarning" xml:space="preserve">
<value>A MigrationAttribute isn't specified on the '{class}' class.</value>
<value>A [Migration] attribute isn't specified on the '{class}' class.</value>
<comment>Warning RelationalEventId.MigrationAttributeMissingWarning string</comment>
</data>
<data name="LogMultipleCollectionIncludeWarning" xml:space="preserve">
Expand Down
4 changes: 2 additions & 2 deletions src/EFCore/Metadata/Internal/EntityType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public EntityType([NotNull] Type type, [NotNull] Model model, ConfigurationSourc
type.Assembly.GetName().Name, StringComparison.Ordinal))
{
throw new ArgumentException(
CoreStrings.AttemptToCreateEntityTypeBasedOnProxyClass(type.FullName));
CoreStrings.AddingProxyTypeAsEntityType(type.FullName));
}

_properties = new SortedDictionary<string, Property>(new PropertyNameComparer(this));
Expand All @@ -129,7 +129,7 @@ public EntityType([NotNull] string name, [NotNull] Type type, [NotNull] Model mo
type.Assembly.GetName().Name, StringComparison.Ordinal))
{
throw new ArgumentException(
CoreStrings.AttemptToCreateEntityTypeBasedOnProxyClass(type.FullName));
CoreStrings.AddingProxyTypeAsEntityType(type.FullName));
}

_properties = new SortedDictionary<string, Property>(new PropertyNameComparer(this));
Expand Down
Loading

0 comments on commit b87a5fb

Please sign in to comment.