SQLMetal 是否支持 SQL-Server 2008 数据类型?

发布于 2024-09-04 17:11:19 字数 308 浏览 2 评论 0原文

我在 VS2K8 的 3.5 框架项目中使用 LinqToSQL,针对 MS SQL 2k8 运行。

当我使用 Visual Studio 中的设计界面创建表映射时,一切正常。

当我使用 SQLMetal(来自 Windows SDK v6.1)创建表映射时,SQLMetal 抱怨我正在使用的 SQL Server 2k8 数据类型(例如日期和时间)。

SQLMetal 是否支持 SQL Server 2k8 数据类型?我需要更新版本吗?或者我是否必须在可视化设计器中创建映射/恢复为 SQL Server 2k5 数据类型?

谢谢

I'm using LinqToSQL in a 3.5 framework project in VS2K8, running against MS SQL 2k8.

When I create the table mappings using the design surface within Visual Studio everything works fine.

When I create the table mappings using SQLMetal (from the Windows SDK v6.1), SQLMetal complains about about the SQL Server 2k8 datatypes (e.g. date and time) that I'm making use of.

Does SQLMetal support the SQL Server 2k8 datatypes? Do I need an updated version? Or do I have to create my mapping in the visual designer/revert to SQL Server 2k5 datatypes?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

善良天后 2024-09-11 17:11:19

据我所知它支持它,所以您可能需要更新版本的 SqlMetal。在初始版本中,当 Visual Studio 2008 启动时,它不支持此功能,因此可能这就是您遇到此问题的原因。

根据 MSDN:

SQLMetal 文件包含在
安装的 Windows SDK
视觉工作室。默认情况下,该文件是
位于驱动器:\Program
文件\微软
SDKs\Windows\vn.nn\bin。如果你不这样做
安装Visual Studio,也可以
通过下载获取SQLMetal文件
Windows SDK。

As far as i know it supports it, so you probably need a newer version of SqlMetal. In the initial version, when Visual Studio 2008 was launched it was not supporting this so probably that's why you have this problem.

According to MSDN:

The SQLMetal file is included in the
Windows SDK that is installed with
Visual Studio. By default, the file is
located at drive:\Program
Files\Microsoft
SDKs\Windows\vn.nn\bin. If you do not
install Visual Studio, you can also
get the SQLMetal file by downloading
the Windows SDK.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文