OrientDB-NET.binary icon indicating copy to clipboard operation
OrientDB-NET.binary copied to clipboard

Adding/Updating/Deleting items in a transaction throws null reference exception unless a query has been performed beforehand.

Open holocentric-bmsnext opened this issue 8 years ago • 2 comments

e.g. when adding a new vertex into the database, if we don't fetch something from the database first a null reference exception will be thrown.

var transaction = database.Transaction;

//database.Select().From(new ORID("#0:0")); <- workaround code . . . transaction.Add(vertex); transaction.Commit();

holocentric-bmsnext avatar Dec 06 '17 07:12 holocentric-bmsnext

try this before using transaction: database.DatabaseProperties.ORID = new ORID();

parkaran avatar May 23 '18 07:05 parkaran

please share me the code for oreintdb 2.2.33 database connection through c#.net

user33 avatar Sep 18 '18 03:09 user33