From: Gianfranco G. <ggi...@se...> - 2004-03-30 14:03:34
|
Hi Carlos Here de complete implementation: string snx1 = "User=SYSDBA;" + "Password=masterkey;" + @"Database=d:\fb db\MyDB.fdb;" + "DataSource=WorkStation;" + "Port=3050;" + "Dialect=3;" + "Charset=WIN1252;" + "Role=;" + "Connection lifetime=15;" + "Pooling=true;" + "Server Type=0;" + "Packet Size=8192"; FbConnection cnx1; FbDataAdapter da1; FbCommandBuilder cb1; private void btnbutton1_Click(object sender, System.EventArgs e) { cnx1 = new FbConnection(snx1); da1 = new FbDataAdapter("select * from XXTABLE",cnx1); cb1 = new FbCommandBuilder(da1); da1.InsertCommand = cb1.GetInsertCommand(); da1.UpdateCommand = cb1.GetUpdateCommand(); da1.DeleteCommand = cb1.GetDeleteCommand(); } I hope this can help. Carlos, thanks in advance for your concerne. Best Regards Gianfranco "Carlos Guzmán Álvarez" <car...@te...> wrote in message news:406...@te...... > Hello: > > > Additional information: Object reference not set to an instance of an > > object. > > Can you send a complete test case, please ?? > > > The same code works fine in the 1.5.2 version > > Yes, but the FbCommandBuilder implementation of 1.6 is different than > the 1.5.x one ;) > > > > -- > Best regards > > Carlos Guzmán Álvarez > Vigo-Spain > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Firebird-net-provider mailing list > Fir...@li... > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider > |