首页 新闻 赞助 找找看

求解决:使用codesmith生成数据访问层类时出现“未将对象引用设置到对象的实例”错误。

0
悬赏园豆:10 [已关闭问题] 关闭于 2010-12-13 19:43

未将对象引用设置到对象的实例。

An error of type "NullReferenceException" occured while attempting to execute this template. To enable Just-In-Time debugging on this template set the "Debug" attribute to "True" in the "CodeTemplate" directive and add a "Debugger.Break()" statement in the template.

是在使用codesmith生成数据访问层类时出现的,

有的表可以正常生成,有的表会提示这种错误,是不是跟表中有外键有关系?

如何解决呀?

nightfire的主页 nightfire | 初学一级 | 园豆:94
提问于:2010-12-09 19:15
< >
分享
所有回答(1)
0

看你自己使用的什么模板,使用codesmith生成时要使用模板,模板可以自己编辑

_____昆 | 园豆:204 (菜鸟二级) | 2010-12-10 09:53
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册