public class Book
{
public long id { get; set; }
public String isbn { get; set; }
public String title { get; set; }
public BookPublishers publishers{ get; set; }
}
public class BookPublishers
{
public ICollection<Publisher> publisher = new List<Publisher>();
public ICollection<Publisher> Publisher()
{
return this.publisher;
}
}
public class Publisher
{
public string name { get; set; }
public String phone { get; set; }
public string address { get; set; }
}
我把书保存给了雷迪斯。但是当我阅读它时,publishers属性没有任何价值。 (Count = 0),其他有。
我将房产发布商评为:public ICollection<Publisher> publishers { get; set; }
我工作。
有人能帮我吗。感谢您阅读我的问题。