WCF RIA Services, jQuery, and JSON endpoint – Part 2

In order to perform CUD operations with WCF RIA Services a changeset must be built. All of the operations use JSON/SubmitChanges. What is performed on the entity depends on the Operation enum. Lets look at the Insert first: function Insert() { var changeSet = []; var entityChange = {}; //Setting Id for entityChange, not the […]

WCF RIA Services, jQuery, and JSON endpoint – Part 1

Here I will show how to perform a simple load using jQuery and RIA Services. Pre-requisites: A working knowledge of WCF RIA Services and jQuery Know how to setup JSON endpoint Server Setup I start with the server because the namespace and class names affect the jQuery code. To keep things simple (and remove the need for a database […]