I have defined a view In Entity Developer and attached a stored procedure for update.
I do the following
VKurvereg q = (from k in DataContext.VKurveregs
where k.Id == 1
select k).SingleOrDefault();
if (q == null)
MessageBox.Show("Query result is null");
q.Kurvelaengde = 123456.47885M;
q.Sportype = "test";
Devart.Data.Linq.ChangeSet cs = DataContext.GetChangeSet();
if (cs.Updates.Count <= 0)
MessageBox.Show("No updates!");
DataContext.SubmitChanges();
I get "No updates!" and SubmitChanges does nothing.
Update view fails
Please check if the VKurvereg class implements INotifyPropertyChanging, INotifyPropertyChanged. Otherwise, Devart.Data.Linq.ChangeSet collection will be empty, but updates must be performed in any cases.
If it doesn't help, please send us (support*devart*com) a small test project that reproduces the issue. Please include the definitions of database objects.
If it doesn't help, please send us (support*devart*com) a small test project that reproduces the issue. Please include the definitions of database objects.