亚音速构建错误

发布于 2024-09-15 21:41:03 字数 702 浏览 1 评论 0原文

我是 subsonic 的新手,我正在尝试使用 subsonic 3.0

我按照设置 subsonic 的每个步骤进行操作

问题是我正在尝试在 web 项目(带有 dotnetnuke)中使用 subsonic3.0 来创建 dll 文件。这样我就可以在同一解决方案的其他项目中重复使用。

当我尝试构建时,我的旧表列之一出现错误,

错误 5 无法隐式地将类型“string”转换为“int?” C:\WebProjects\subsonicTest\App_Data\ActiveRecord.cs 14035 32 subsonicTest

错误 25 'string.IsNullOrEmpty(string)' 的最佳重载方法匹配有一些无效参数 C:\WebProjects\subsonicTest\App_Data\ActiveRecord.cs 47752 16 subsonicTest

错误 31 'dnn3.Data.PackageType' 不包含 'PackageType' 的定义,并且找不到接受类型 'dnn3.Data.PackageType' 第一个参数的扩展方法 'PackageType'(您是否缺少 using 指令或程序集参考?) C:\WebProjects\subsonicTest\App_Data\ActiveRecord.cs 48082 25 subsonicTest

您能给我一个如何解决的想法吗?

谢谢 沙阿

i am new to subsonic, i am trying to use subsonic 3.0

i followed every steps to set up subsonic

Problem is i am trying to use subsonic3.0 in a web project (with dotnetnuke) to create a dll file. so i can re use in other projects in the same solution.

when i try to build i got error with one of my old table column,

Error 5 Cannot implicitly convert type 'string' to 'int?' C:\WebProjects\subsonicTest\App_Data\ActiveRecord.cs 14035 32 subsonicTest

Error 25 The best overloaded method match for 'string.IsNullOrEmpty(string)' has some invalid arguments C:\WebProjects\subsonicTest\App_Data\ActiveRecord.cs 47752 16 subsonicTest

Error 31 'dnn3.Data.PackageType' does not contain a definition for 'PackageType' and no extension method 'PackageType' accepting a first argument of type 'dnn3.Data.PackageType' could be found (are you missing a using directive or an assembly reference?) C:\WebProjects\subsonicTest\App_Data\ActiveRecord.cs 48082 25 subsonicTest

Could you please give me an idea how to solve.

thanks
shah

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

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

发布评论

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

评论(1

只是一片海 2024-09-22 21:41:03

显然,有些列的类型是错误的。可能您更改了数据库中的表定义,但没有更新 Subsonic 生成的所有代码。
尝试重新生成代码(解决方案资源管理器,右键单击文件,运行自定义工具)。

如果您使用生成的代码手动编写了某些内容,请在更新这些定义后检查您的代码是否依赖于正确的类型定义。

如果这没有帮助,请尝试查看有错误的确切行。编辑您的问题以包含这些行,以便有人可以尝试提供帮助,而不必猜测那里发生了什么。

Obviously, the types of some columns are wrong. Probably you changed table definitions in the database and didn't update all the code generated by Subsonic.
Try re-generating the code (Solution Explorer, right click on the file, Run custom tool).

If you have manually written something using the generated code, check that your code relies on correct type definitions after those definitions are updated.

If this doesn't help, try looking at the exact lines with errors. Edit your question to include these lines so that someone can try to help without having to guess what is going on there.

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