PetaPoco集成出现错误

本文关键字:错误 集成 PetaPoco | 更新日期: 2023-09-27 18:28:05

我正在尝试使用PetaPoco作为我的ORM。

如上所述http://www.toptensoftware.com/petapoco/,我试过nuget的Install-Package PetaPoco。但它以An error occurred while loading packages from'https://api.nuget.org/v3/index.json': The operation has timed out. 结束

然后我从下载并添加了PetaPoco.cshttps://github.com/toptensoftware/PetaPoco/blob/master/PetaPoco/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
.....
.....

有什么帮助吗?

PetaPoco集成出现错误

再次尝试nuget包。您下载的文件不是单一文件版本。单文件版本在编译时构建,并打包为nuget包。别忘了PetaPoco有三个版本。请参阅wiki