OrientDB-NET.binary
OrientDB-NET.binary copied to clipboard
Adding/Updating/Deleting items in a transaction throws null reference exception unless a query has been performed beforehand.
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();
try this before using transaction:
database.DatabaseProperties.ORID = new ORID();
please share me the code for oreintdb 2.2.33 database connection through c#.net