cost 234 ms
如何使用 protobuf.net 序列化循环引用的 ef poco class - How to serialize circular referenced ef poco class using protobuf-net

我在我的项目中使用了 marc gravell 的 protobuf.net 和 ef core。 长话短说,我在我的 POCO class 上使用了 Inverseproperty 属性,当我从数据库中获取结果时会导致循环引用,这会导致我在尝试使用 protobuf.net 序列化数据时遇到麻烦 ...

基于“一对多”的反向关系映射使用实体框架和 GraphQl - Inverse relationship mapping based on "one to many" using Entity Framework and GraphQl

我正在开发我的 API 的新版本,现在使用 GraphQL 来获得一些优势。 我有实体Partner ,它具有Farm的List属性。 在这一点上是可以的,当我在我的 API 上调用Partners ,我可以获得他们的Farms 。 但是当我在 API 中调用Farms时,我希望它返回与之相关的 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM