Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
holocentric-bmsnext opened this issue Dec 6, 2017 · 2 comments

Comments

@holocentric-bmsnext
Copy link

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();

@parkaran
Copy link

parkaran commented May 23, 2018

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

@user33
Copy link

user33 commented Sep 18, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants