c# - How to implement nested Models in ASP.NET Web API? -


I can not find a tutorial that shows how to apply a model that manages hierarchical data. Example: How do I model:

  {"name": "Joe Smith", "age": "40", "address": {"street" : "123pine", "city  
post-text" itemprop = "text"> < Former> person in public category {get public entity ID {ID; Set; } Public string name {get; Set; } Public int Age {Received; Set; } Public int AddressId {get; Set; } Public Address Address {get; Set; }} Public class address {public entry ad {get; Set; } Public String Street {Received; Set; } Public String City {Received; Set; }}

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -