【发布时间】:2019-11-19 09:48:39
【问题描述】:
我想为我的客户端应用程序实现 JSON:API 后端服务。所有数据都保存在 MongoDB 中,我已经为简单的数据交互(如 CRUD)实现了通用数据服务。 .net 核心中是否有任何库或方法可以做到这一点?我看到了这个库:https://github.com/json-api-dotnet/JsonApiDotNetCore,但如果我没记错的话,它不适合 MongoDB,我不想使用 DBContext。我对 JSON:API 和 MongoDB 很陌生,希望我已经解释了我的要求。
【问题讨论】:
-
您确定
JsonApiDotNetCore必须使用DBContext吗?如果我做对了,文档正在讨论 manually constructing a resource graph 作为 Entity Framework DbContext 的替代品。
标签: .net mongodb .net-core json-api