Skip to content

Commit 8dad7d1

Browse files
committed
Move exception message to resources
1 parent aa30bfb commit 8dad7d1

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

Orm/Xtensive.Orm/Sql/Compiler/Internals/PostCompiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public override void Visit(CycleNode node)
9999
private void EnsureActualizationPossible()
100100
{
101101
if (!canActualizeQuery) {
102-
throw new InvalidOperationException("Query was compiled with SqlCompilerConfiguration.SharedStorageSchema option set to true, it required PostCompilerConfiguration.SchemaMapping and PostCompilerConfiguration.DatabaseMapping collections to be provided.");
102+
throw new InvalidOperationException(Strings.ExUnableToActualizeSchemaNodeInQuery);
103103
}
104104
}
105105

Orm/Xtensive.Orm/Strings.Designer.cs

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Orm/Xtensive.Orm/Strings.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2585,4 +2585,7 @@ Error: {1}</value>
25852585
<data name="ExIgnoreRuleIsAlreadyConfiguredForX" xml:space="preserve">
25862586
<value>Rule is already configured for {0}.</value>
25872587
</data>
2588+
<data name="ExUnableToActualizeSchemaNodeInQuery" xml:space="preserve">
2589+
<value>Query was compiled with SqlCompilerConfiguration.SharedStorageSchema option set to true, it requires PostCompilerConfiguration.SchemaMapping and PostCompilerConfiguration.DatabaseMapping collections to be provided.</value>
2590+
</data>
25882591
</root>

0 commit comments

Comments
 (0)