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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -