Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 nopcommerce 开源购物车。我有问题。我只想从另一个数据库中获取 Stock Quantity。所以我想添加另一个数据库连接字符串。我该怎么做??
我想在同一个视图中显示来自两个数据库的数据。
请给我解决方案..
nopcommerec 还没有提供这样的工具来添加一个以上的数据源。而不是你需要编写 web 服务来使用股票数据
在 nopccommerec 中创建库存表并在 InstallationService.cs 中(NOP.Service/Installation)中编写 Web 服务器。这将在安装 NOP 应用程序时在库存表中插入值。