This is a migrated thread and some comments may be shown as answers.

Example of Datasource with one to many relationship

0 Answers 78 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 06 Sep 2012, 02:22 AM
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

No answers yet. Maybe you can help?

Tags
Data Source
Asked by
Kevin
Top achievements
Rank 1
Share this question
or