【发布时间】:2021-09-26 21:04:17
【问题描述】:
我在 .net core 5 中开发了 2 个 WebApi,例如 InventoryApi 和 SalesApi。
我在 StockIO 的 InventoryApi 中有一个名为 Good 的对象。
Good 与 SalesApi 中的 Salesinvoices 对象有关系。
我必须引用哪些选项?
- 使用共享类
- 在 SalesApi 项目中引用 InventoryApi 并使用来自 Inventory 的 Good Object
- 还有其他解决方案吗?
【问题讨论】:
标签: c# rest web-services .net-core asp.net-core-webapi