【发布时间】:2018-08-31 11:03:15
【问题描述】:
我想将 GraphQL 集成到我现有的 ASP.NET Framework(使用 Entity Framework 4)应用程序中,该应用程序以 MSSQL Server 作为后端。
在浏览 .NET 的 GraphQL 库时,我发现了 2 个库 - graphql-dotnet 和 graphql-net,在 GraphQL 网站上被推荐(链接:@987654321 @)
看来(如果我错了,请纠正我):
- graphql-dotnet (https://github.com/graphql-dotnet/graphql-dotnet) - 这个库只支持内存中的数据
- graphql-net (https://github.com/ckimes89/graphql-net) - 如果我们想处理已存储在 DB 中的数据,此库非常适用。
有什么建议或更正吗?是否可以使用以前的 (即 graphql-dotnet) 库对数据库执行读/写操作? 还是应该改用 graphql-net 库?
【问题讨论】:
-
我试过graphql-dotnet。这不仅仅是您可以与 DB 集成的内存。我尝试使用github.com/landmarkhw/Dapper.GraphQL 从 SQL 查询
-
这里是 grapql-dotnet 和 dapper 的示例应用程序:github.com/sandeepbs404/GraphQlWithDapper.Sample