SqlMetal 脚本和大写
当我运行 SqlMetal 时,它会生成所有带有大写字母的视图和函数。 他们是否有办法让它在数据库中的任何情况下生成它?
当我使用 UI 构建 DBML 和 CS 文件时,它可以正确处理此问题,但是当我对其编写脚本时,SqlMetal 似乎将它们设为大写。
这不是什么大不了的事,但它让我想知道它们是否是我不知道的其他微妙变化,或者我只是做了一些愚蠢的事情。
如果有帮助的话,这就是我正在做的事情:
SqlMetal.exe /conn:"Data Source=server1\developer2008;Initial Catalog=Dingo;Integrated Security=true" /views /functions /sprocs /pluralize /language:csharp /namespace:"Foo_Api" /context:"DataClassesFooDataContext" /dbml:"foo.dbml"
SqlMetal.exe /code:"foo.designer.cs" "foo.dbml"
When I run SqlMetal it generates all views and functions with a capital letter.
Is their a way to make it generate it in whatever case is in the database?
When I use the UI to build the DBML and CS file it handles this properly, however when I script it SqlMetal seems to make them upper case.
This isn't a huge deal however it makes me wonder if their are other subtle changes I don't know about or if I'm simply doing something stupid.
Here is what I'm doing, if it helps:
SqlMetal.exe /conn:"Data Source=server1\developer2008;Initial Catalog=Dingo;Integrated Security=true" /views /functions /sprocs /pluralize /language:csharp /namespace:"Foo_Api" /context:"DataClassesFooDataContext" /dbml:"foo.dbml"
SqlMetal.exe /code:"foo.designer.cs" "foo.dbml"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您能否在获取数据库模式和生成代码之间对 foo.dbml 执行转换(它是 XML)?
Could you perform a transform (it is XML) on foo.dbml between getting the DB schema and generating the code?