PetaPoco 集成中的错误
Erron in PetaPoco integration
我正在尝试使用 PetaPoco 作为我的 ORM。
如 http://www.toptensoftware.com/petapoco/ 所述,我已尝试 Install-Package PetaPoco
来自 nuget。但它以 An error occurred while loading packages from'https://api.nuget.org/v3/index.json': The operation has timed out.
结尾
然后我从 https://github.com/toptensoftware/PetaPoco/blob/master/PetaPoco/PetaPoco.cs
下载并添加了 PetaPoco.cs
但我仍然收到 73 个错误。
The type or namespace name 'Internal' does not exist in the namespace 'PetaPoco'
The name 'DatabaseType' does not exist in the current context
The type or namespace name 'ITransaction' could not be found
.....
.....
有什么帮助吗?
再次尝试 nuget 包。您下载的文件不是单文件版本。单文件版本在编译时构建并打包为 nuget 包。不要忘记 PetaPoco 有三个版本。请参阅 wiki
我正在尝试使用 PetaPoco 作为我的 ORM。
如 http://www.toptensoftware.com/petapoco/ 所述,我已尝试 Install-Package PetaPoco
来自 nuget。但它以 An error occurred while loading packages from'https://api.nuget.org/v3/index.json': The operation has timed out.
然后我从 https://github.com/toptensoftware/PetaPoco/blob/master/PetaPoco/PetaPoco.cs
下载并添加了PetaPoco.cs
但我仍然收到 73 个错误。
The type or namespace name 'Internal' does not exist in the namespace 'PetaPoco'
The name 'DatabaseType' does not exist in the current context
The type or namespace name 'ITransaction' could not be found
.....
.....
有什么帮助吗?
再次尝试 nuget 包。您下载的文件不是单文件版本。单文件版本在编译时构建并打包为 nuget 包。不要忘记 PetaPoco 有三个版本。请参阅 wiki