如何使用 VS2008 命令提示符从 sqlCe Db 生成数据库类 [英] How to Use VS2008 Command prompt to generate Database Class from sqlCe Db

查看:23
本文介绍了如何使用 VS2008 命令提示符从 sqlCe Db 生成数据库类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用 VS2008 创建了一个 sqlce Db 并在 C:\Temp08 中保存一个副本.

created a sqlce Db with VS2008 and save a copy in C:\ Temp08.

有人能指出这个 Sqlmetal 语法有什么问题吗:

can someone point out what was wrong with this Sqlmetal syntax :

sqlmetal c:\Users\DELL\Documents\Temp08\NtwContacts.sdf/代码:c:\Users\DELL\Documents\Temp08\NtwContactsData.cs/language:cs/namespace:LocalDB/context:NtwContactsDataContext/pluralize

sqlmetal c:\Users\DELL\Documents\Temp08\NtwContacts.sdf/ code:c:\Users\DELL\Documents\Temp08\NtwContactsData.cs/language:cs/namespace:LocalDB/context:NtwContactsDataContext /pluralize

错误:SQm1003:输入文件 ' code:c:\Users\DELL\Documents\Temp08\NtwContactsData.cs/language:cs/namespace:LocalDB/context:NtwContactsDataContext -- 不存在

Error : SQm1003: Input file ' code:c:\Users\DELL\Documents\Temp08\NtwContactsData.cs/language:cs/namespace:LocalDB/context:NtwContactsDataContext -- does not exist

我的机器状态:赢7专业版windows phone 使用 VS2008 和 VS2010 express.

My machine status : win7 pro Using VS2008 and VS2010 express for windows phone.

----- 20/7 月:已经测试了这些条件:

----- 20/Jul : have tested these conditions:

sqlmetal c:\Users\DELL\Documents\Temp08\NtwContacts.sdf/code:c:\Users\DELL\Documents\Temp08\NtwContactsData.cs/language:cs/namespace:LocalDB/context:NtwContactsDataContext/pluralize

sqlmetal c:\Users\DELL\Documents\Temp08\NtwContacts.sdf/code:c:\Users\DELL\Documents\Temp08\NtwContactsData.cs/language:cs/namespace:LocalDB/context:NtwContactsDataContext/pluralize

试试这些:中间没有空格

Try these : no space in between

1)/代码:--->/code

1) / code: ---> /code

2) 语言:cs --- > 语言:csharp 或语言:cs

2) language:cs --- > language:csharp or language:cs

3) C 或 c

--结果:同样的问题

问题:
1.当我测试这个:sqlmetal C:\Users\DELL\Documents\Temp08\NtwContacts.sdf

Questions :
1. When I test this : sqlmetal C:\Users\DELL\Documents\Temp08\NtwContacts.sdf

在Xml中的表结构的命令提示符下有返回结果.

There is a return result on the command prompt with the table structure in Xml .

  1. 问题出在哪里?

推荐答案

应该是:NtwContacts.sdf/code

It should be: NtwContacts.sdf /code

这篇关于如何使用 VS2008 命令提示符从 sqlCe Db 生成数据库类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆