Delphi Spring4D 适配器单元

huangapple go评论61阅读模式
英文:

Delphi Spring4D Adapters units

问题

我刚刚安装了Spring4D来测试,但它无法找到Spring.Persistence.Adapters单元。我尝试了多种安装方式,手动将所有文件夹放入我的IDE库,但仍然找不到任何适配器。如果我手动添加一个适配器单元,它会返回一个{$I Spring.inc}错误。

没有找到关于这个特定错误的任何帮助,并且Spring的Google群组被禁止了。

有人遇到过这个问题并设法解决吗?

英文:

I just installed Spring4D to test, but it cannot find the Spring.Persistence.Adapters units. I tried to install of multiple ways, put all the folders manually in my IDE library, but still cannot find any adapter. If I add a adapter unit manually, it returns a {$I Spring.inc} error.

Not found any help about this specific error, and Spring Google group was banned.

Has anyone had this problem and managed to resolve it?

答案1

得分: 1

这些单元位于Source\Persistence\Adapters文件夹中。

它们未经运行时包预编译,因为每个单元都用于特定的数据访问组件库(ADO、FireDAC等),因此在编译Spring.Persistence包时需要所有这些组件,否则会导致失败。

这意味着您有以下可能性:

  • 明确向项目添加您选择的数据访问组件的适配器单元
  • 将上述文件夹添加到
    • 您希望在其中使用它们的项目的搜索路径
    • 您的IDE的库路径

所有这些还需要将Source目录添加到项目的搜索路径或IDE的库路径中,因为那是Spring.inc所在的文件夹。

英文:

These units are located in the Source\Persistence\Adapters folder.

They are not precompiled via the runtime packages because each of them is for specific data access component libraries (ADO, FireDAC, etc) and thus would require all of them when compiling the Spring.Persistence package which would cause failure for like everyone.

This means you have following possibilities:

  • explicitly add the adapters unit for the data access component of your choice to the project
  • add the aforementioned folder to
    • the search path of your project where you want to use them
    • the library path of your IDE

All of these also require adding the Source directory to either the search path of the project or the library path of your IDE because that is the folder where Spring.inc is located.

huangapple
  • 本文由 发表于 2023年5月26日 00:49:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76334597.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定