Update view fails

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
GlennBA
Posts: 21
Joined: Tue 02 Jun 2009 12:58

Update view fails

Post by GlennBA » Wed 10 Jun 2009 09:18

Hi

I am evaluating DotConnect for Oracle.

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.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Wed 10 Jun 2009 16:13

We have answered you in this thread:
http://devart.com/forums/viewtopic.php?t=15043.

Post Reply