Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > LINQ
|
LINQ Discuss Microsoft's LINQ (Language INtegrated Query) for .NET 3.0 and later.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the LINQ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 9th, 2012, 11:55 AM
Registered User
 
Join Date: Oct 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Row not found or changed

Hi,

I keep getting this Row not found or changed error.
I've already tried changing the dbml property Udate Check to "never", without results.
I would greatly appreciate any help I can get on this matter.
Below is the code of the .cs file.

Thanx

MikeFIF



Code:
protected void Button13_Click(object sender, EventArgs e)
    {
FacturatieDataContext adm1n = new FacturatieDataContext();
    Beheren beheer3 = new Beheren();
 Beheren beheer2 = new Beheren();
//select the row
var b3h3er1 = from c in adm1n.Beherens
                      where c.Naambeheer == TextBox1.Text
                      select c;
 
            //Make a new beheren
            beheer3.Naambeheer = TextBox4.Text;
            
//the old beheren
            beheer2.Naambeheer = TextBox1.Text;
            
//submit the changes
adm1n.Beherens.Attach(beheer3,beheer2);
        adm1n.SubmitChanges();
    }





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change line color between Ribbin row and Title Row spa95 BOOK: Professional SharePoint 2010 Branding and User Interface Design 0 December 9th, 2011 01:19 PM
need oracle SP to split csv row by row sid ASP.NET 3.5 Professionals 0 April 22nd, 2010 03:08 PM
$data[0][$row->parentid]['children'][$row->id] = $row->name mehdymahmood BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 1 February 2nd, 2010 02:19 AM
insert a duplicate row with one changed field only swdgaurav SQL Language 1 December 31st, 2007 04:54 AM
Read a column and Search Row by Row in another col AyatKh Excel VBA 2 January 26th, 2005 12:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.