Example of Datasource with one to many relationship

1 posts, 0 answers
  1. Kevin
    Kevin avatar
    1 posts
    Member since:
    Aug 2012

    Posted 05 Sep 2012 Link to this post

    Is there a demo or example of how to support one to many crud operations using data source JSON, to ASP.NET Web API? I have a simple registraiton form that has contact information which is a simple class. However, it has two dependant tables of guests for the registrtation and merchandise purchased by the person registering for an event. Model: Last Name First Name.... Array of Guests containing Last Name, First Name, registration type Array of Items purchased containing item description, quantity, price, extended price Is there a simple way to represent this as a schema and use Web API to perform crud operations on the arrays? The general videos from Burke are helpful for base object but not sure how to approach the depenent tables/arrays. There may be zero to many entries for both arrays. Any suggestion on a tutorial, video, or demo would be great. Thanks, Kevin
Back to Top