public void GenerateCode(IConceptInfo conceptInfo, ICodeBuilder codeBuilder) { HardcodedEntityInfo info = (HardcodedEntityInfo)conceptInfo; var codeSnippet = $@"throw new Rhetos.UserException(""It is not allowed to modify hard-coded data in {{0}}."", new []{{""{conceptInfo.GetKeyProperties()}""}}, null, null); "; codeBuilder.InsertCode(codeSnippet, WritableOrmDataStructureCodeGenerator.ArgumentValidationTag, info); }