我有一個python對象,它基本上是其他對象實例的集合。你可以附加其他對象(它只是存儲在一個列表中)。讀取文件,例如,當它被創建: def file_reader(file):
obj = MyCollection()
for line in file:
other_obj = line_reader(line)
obj.append(other_ob
發出映射器循環引用問題。我試圖將AA映射爲A.A具有B的對象,但B具有A的對象。這是循環引用問題。我不確定Emit mapper如何處理這個問題。 public class A
{
public A()
{
list = new List<B>();
}
List<B> list {get; set;}
}
public class B