Closed beholdthelight closed 4 years ago
the exception you have here is not consistent with autoincrement issues. Can you post some more code to show what exactly you are doing?
Hi! With the objective of organizing our issues, we are closing old unsolved issues. Please check the latest version of LiteDB and open a new issue if your problem/question/suggestion still applies. Thanks!
Hi,
I've tried setting Id as int, ObjectId and Guid, but only Guid worked.
If I set Id to this: (in class "LiteDbLogEntry") public int Id { get; set; }
When the code hits this: logCollection.Insert(liteDbLogEntry);
I get this exception: An unhandled exception of type 'System.NullReferenceException' occurred in LiteDB.dll Additional information: Object reference not set to an instance of an object.
I get the same for ObjectId as well. Only GUID works.