Closed m-sadegh-sh closed 3 years ago
Thank you @m-sadegh-sh,
This issue is related to M#
rather than the Olive
. I will close it here and will add it to the M# issue tracker.
Thanks, and sorry. I posted it here because I couldn't find M#'s official repo 😁
why is the schema name not valid? Is it casing ?
why is the schema name not valid? Is it casing ?
No, it's not related to the casing. It's because the table was created with the correct schema, but sp_addextendedproperty is called with the default dbo
schema. Hence I'm not a SQL pro, I don't know what's the purpose of that call, but I checked out other entities, especially those with a similar schema to ContentBlock, and I found no sp_addextendedproperty call in their generated files.
I created a brand new project using M# ASP.NET MVC project template. Let's imagine we changed the default ContentBlock entity definition as below:
After successfully building the solution, If we take a look at the generated Cms.ContentBlocks.Create.sql file, we can find the broken line:
You can see that it's going to add an extended property for the ContentBlock table, but the name of the schema isn't valid. So the query execution will fail.
I could find relative information neither on this repo's issues, nor on the docs website, so I decided to open an issue.