admin管理员组文章数量:1307752
I need to create a schema before the first table is created because it relies on it to exist.
I have tried Add-Migration CreateSchema
with and without the flag -IgnoreChanges
and then replaced Up and Down methods with my SQL script.
The issue is that then, after the command Add-Migration InitialCreate -Verbose
creates an empty migration in both cases.
I need to create the schema first because my table attribute [Table("schema.TableName")]
in the C# class is in lowercase, but the schema should be in uppercase (SCHEMA
).
本文标签: net coreEF6 creating schema before InitialCreateStack Overflow
版权声明:本文标题:.net core - EF6: creating schema before InitialCreate - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741767967a2396576.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论