Now I found a reason for you to do this. From the mouth of Microsoft.

You should check this:
Retrieving Identity or Autonumber Values
http://msdn2.microsoft.com/en-us/library/ks9f57t0(VS.80).aspx

When either of these methods is used to preserve original values in a 
DataRow during a DataAdapter update, ADO.NET performs a series of actions to 
set the current values of the DataRow to new values returned by output 
parameters or by the first returned row of a result set, while still 
preserving the original value in each DataColumn. First, the AcceptChanges 
method of the DataRow is called to preserve the current values as original 
values, and then the new values are assigned. Following these actions, 
DataRows that had their RowState property set to Added will have their 
RowState property set to Modified, which may be unexpected.


----- Original Message ----- 
From: "Carlos Guzmán Álvarez" <[EMAIL PROTECTED]>
To: "For users and developers of the Firebird .NET providers" 
<[email protected]>
Sent: Thursday, November 16, 2006 9:09 PM
Subject: Re: [Firebird-net-provider] FbDataAdapter problem


> Hello:
>>       if (statementType == StatementType.Insert)
>>      {
>>         row.AcceptChanges();
>>       }
>
> I'm not going to do this unless there are any good argument for doing it
> only for inserts.
>
>
> -- 
> Carlos Guzmán Álvarez
> Vigo-Spain
>
> http://carlosga.wordpress.com
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Firebird-net-provider mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to