积极答复者
囧~C#数据库连接问题

问题
-
在asp.net中使用的三层数据库连接整个搬到c# winform程序中,上次调试通过了。
我又新建了个数据库,然后用codesmith生成的,结果显示找不到实体类。
为什么上次直接搬过来的就可以用呢?大侠们给个winform三层的例子啊,
主要是配置文件和连接那里。。
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="conn" connectionString="server=.;database=mydb;uid=sa;pwd=sa"/>
</connectionStrings>
</configuration>
我用的connectionString
把原来的生成的类复制过来又可以用了。。。为什么新生成的类在项目里不显示呢?并且类也没有那个c#标志。。。- 已编辑 井底之蛙 2010年1月7日 18:28
答案
全部回复
-
Codesmith的论坛在http://community.codesmithtools.com/forums/为什么新生成的类会在项目里面显示呢?Codesmith又不修改项目文件。
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP