cost 372 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