[Mono-devel-list] ADO.NET and DataRow.AcceptChanges();

Luciano Callero lnc19 at hotmail.com
Mon Nov 10 07:49:12 EST 2003


Yes I was looking at msdn and this is the right:
...And then, the Update Method execute AcceptChange()

Fill (unmodified)
Modify, Delete, Insert
Update







>From: "Eran Domb" <erand at mainsoft.com>
>To: <yoros at wanadoo.es>, "'Daniel Morgan'" <danielmorgan at verizon.net>
>CC: "'mono-devel-list'" <mono-devel-list at lists.ximian.com>
>Subject: RE: [Mono-devel-list] ADO.NET and DataRow.AcceptChanges();
>Date: Mon, 10 Nov 2003 09:21:59 +0200
>MIME-Version: 1.0
>Received: from mc3-f1.hotmail.com ([64.4.50.137]) by mc3-s10.hotmail.com 
>with Microsoft SMTPSVC(5.0.2195.6713); Sun, 9 Nov 2003 23:23:17 -0800
>Received: from listsmx.ximian.com ([141.154.95.15]) by mc3-f1.hotmail.com 
>with Microsoft SMTPSVC(5.0.2195.6713); Sun, 9 Nov 2003 23:23:09 -0800
>Received: from headcheese.ximian.com (localhost [127.0.0.1])by 
>listsmx.ximian.com (Postfix) with ESMTPid 6F09712426D; Mon, 10 Nov 2003 
>02:23:03 -0500 (EST)
>Received: by listsmx.ximian.com (Postfix, from userid 38)id DBE4C124249; 
>Mon, 10 Nov 2003 02:22:38 -0500 (EST)
>Received: from russel.il.mainsoft.com (unknown [213.31.213.10])by 
>listsmx.ximian.com (Postfix) with ESMTP id 61BAA124044for 
><mono-devel-list at lists.ximian.com>; Mon, 10 Nov 2003 02:22:06 -0500 (EST)
>Received: from erandxp1 (erand-xp1.il.mainsoft.com [172.17.1.51])by 
>russel.il.mainsoft.com (8.9.3/8.9.3) with ESMTP id JAA12793;Mon, 10 Nov 
>2003 09:21:40 +0200
>X-Message-Info: BVVQfv+dWoO80L3HWPAZcsV46MtbxwzRdsXVBwXJR5I=
>Message-ID: <002c01c3a75b$5474a920$330111ac at il.mainsoft.com>
>X-Priority: 3 (Normal)
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook, Build 10.0.2627
>Importance: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>In-Reply-To: <20031109210441.GA2661 at wanadoo.es>
>X-Spam-Status: No, hits=-22.6 
>required=5.0tests=EMAIL_ATTRIBUTION,IN_REP_TO,ORIGINAL_MESSAGE,      
>QUOTED_EMAIL_TEXT,REPLY_WITH_QUOTESversion=2.53
>X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53 
>(1.174.2.15-2003-03-30-exp)
>Sender: mono-devel-list-admin at lists.ximian.com
>Errors-To: mono-devel-list-admin at lists.ximian.com
>X-BeenThere: mono-devel-list at lists.ximian.com
>X-Mailman-Version: 2.0.13
>Precedence: bulk
>List-Help: <mailto:mono-devel-list-request at lists.ximian.com?subject=help>
>List-Post: <mailto:mono-devel-list at lists.ximian.com>
>List-Subscribe: 
><http://lists.ximian.com/mailman/listinfo/mono-devel-list>,<mailto:mono-devel-list-request at lists.ximian.com?subject=subscribe>
>List-Id: Mono Development <mono-devel-list.lists.ximian.com>
>List-Unsubscribe: 
><http://lists.ximian.com/mailman/listinfo/mono-devel-list>,<mailto:mono-devel-list-request at lists.ximian.com?subject=unsubscribe>
>List-Archive: <http://lists.ximian.com/archives/public/mono-devel-list/>
>Return-Path: mono-devel-list-admin at lists.ximian.com
>X-OriginalArrivalTime: 10 Nov 2003 07:23:17.0647 (UTC) 
>FILETIME=[82E5D9F0:01C3A75B]
>
>Hi
>After you do AcceptChanges() the row state become Unchanged so when you
>do Update() the DataAdapter will not update the database because the
>state is unchanged. The flow should be: Fill DataSet from DataAdapter,
>make changes on the rows (modify, delete) and then update the database
>throw the DataAdapter (without doing AcceptChanges()). The only rows
>that will be updated to the database are those that their state is
>Modify or Deleted.
>
>
>-----Original Message-----
>From: mono-devel-list-admin at lists.ximian.com
>[mailto:mono-devel-list-admin at lists.ximian.com] On Behalf Of
>yoros at wanadoo.es
>Sent: Sunday, November 09, 2003 11:05 PM
>To: Daniel Morgan
>Cc: mono-devel-list
>Subject: Re: [Mono-devel-list] ADO.NET and DataRow.AcceptChanges();
>
>On Sun, Nov 09, 2003 at 03:22:11PM -0500, Daniel Morgan wrote:
> > I don't know the answer, but I will guess for you...
> >
> > Does the adapter have a command object for deleting the row?
> >
>
>The adapter uses CommandBuilder to build the needed command, but that's
>not the question. I'm talking about the AcceptChanges() and Update().
>
>Regards,
>
>     Pedro
>
>--
>Pedro Martínez Juliá
>\  yoros at terra.es
>)|    yoros at wanadoo.es
>/        http://yoros.dyndns.org
>Socio HispaLinux #311
>Usuario Linux #275438 - http://counter.li.org
>GnuPG public information:  pub  1024D/74F1D3AC
>Key fingerprint = 8431 7B47 D2B4 5A46 5F8E  534F 588B E285 74F1 D3AC
>_______________________________________________
>Mono-devel-list mailing list
>Mono-devel-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>_______________________________________________
>Mono-devel-list mailing list
>Mono-devel-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-devel-list

_________________________________________________________________
Consigue aquí las mejores y mas recientes ofertas de trabajo en América 
Latina y USA: www.yupimsn.com/empleos




More information about the Mono-devel-list mailing list