1. You need to hit submit after you add.. Adding only adds to the local collection, to push it to the database, you need to call submit changes. If you’d like to have Add.. always add it to the database, simply add a call to SubmitChanges(). (line 8). But notice this does do a network operation..
2. You need to set Issues to some number greater than 100. Otherwise it will add it to the database, but it gets filtered out when the list is refreshed. Look at this code from the DomainService.. see line 4?
Really, I guess I should hint that to the user by setting a min value for issues in the add dialog. You can do that by changing the range attribute in the SuperEmployeesDomainService.metadata.cs file.
Related a common question has been how to write code that get’s called *after* the initial load of data is done. Mostly RIA Services’ programming model avoids you having to deal with it, but sometimes there is no other way. So here is a simple example of how to run some code after a load operation is complete.
Hope this helps! I have updated the demo files…