diff --git a/server/csharp/MetaObjects.Codegen/CSharpNaming.cs b/server/csharp/MetaObjects.Codegen/CSharpNaming.cs index 3adef6c8f..3274c2afe 100644 --- a/server/csharp/MetaObjects.Codegen/CSharpNaming.cs +++ b/server/csharp/MetaObjects.Codegen/CSharpNaming.cs @@ -433,7 +433,7 @@ public static string RoutePath(MetaObject entity) => /// /// The DbSet property name for an object: its collection name (rc.19, R57) — its own - /// @collectionName (or the deprecated @dbSetName alias), else the configured + /// @collectionName, else the configured /// pluralizer (naming.collections) over Pascal(name), else the historical /// Pluralize(Pascal(name)) (which keeps C#'s -sis rule, so an unconfigured /// project's DbSets are unchanged). Every site that names the property (the context, the routes, @@ -451,7 +451,7 @@ public static string DbSetName(MetaObject entity) // error in the generated context (or a property that hides DbContext.Database). if (!System.Text.RegularExpressions.Regex.IsMatch(declared, "^[A-Za-z_][A-Za-z0-9_]*$") || ReservedDbSetNames.Contains(declared)) throw new InvalidOperationException( - $"{entity.ResolutionKey()}: the collection name \"{declared}\" (@collectionName, or its deprecated alias @dbSetName) cannot be the DbSet property name — it must be a C# identifier " + + $"{entity.ResolutionKey()}: the collection name \"{declared}\" (@collectionName) cannot be the DbSet property name — it must be a C# identifier " + "(letters, digits and underscores, not starting with a digit) and not a DbContext member (Database, Model, ChangeTracker, ContextId)."); return declared; }