A couple of people mentioned they are having problems getting adding to work in my example . I think there are two issues that are getting people. See the full series ? 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.. 1: void addNewWindow_Closed( object sender, EventArgs e) 2: { 3: var win = sender as AddNewWindow; 4: var context = dds.DomainContext as SuperEmployeeDomainContext; 5: if (win.DialogResult == true ) 6: { 7: context.SuperEmployees.Add(win...(read more)
Go to the complete details ...