Im having the following problem:
Im filling a DataTable via dataadapter.Fill Method using the following
code:
DataTable data = new DataTable("Interessenslagen");
FbDataAdapter _fbda = new FbDataAdapter(("select * from t_interessenslagen",
fbconn);
FbCommandBuilder _fbcb = new FbCommandBuilder(_fbda);
FbCommand fbcinsert = _fbcb.GetInsertCommand();
fbcinsert.CommandText += " returning il_id";
fbcinsert.Parameters.Add("il_id", FbDbType.Integer).Direction =
ParameterDirection.Output;
fbcinsert.UpdatedRowSource = UpdateRowSource.OutputParameters;
_fbda.InsertCommand = fbcinsert;
_fbda.Fill(data);
I'm trying to get the id in the DataAdapter.RowUpdated-Event, but it isn't
there.
Can someone please tell me what's wrong with my code?
Thanks in advance,
André Litfin
Xsigns GmbH & Co. KG
www.xsigns.de
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider