Comments (3)
Thanks for the issue!
I suppose you mean when inserting an item to an empty collection? Then it will just get a default id and won't use the one of the inserted item. DocumentCollection.cs#L374
Will make a fix for that, so if the first item has an id it will be used.
from json-flatfile-datastore.
Hi, sorry for my bad writing, was kinda tired... yes, exactly. When inserting a new entity into a collection, the provided Id
is ignored and a new one is generated based on the last item's Id
. I had to change a keyProperty
like new DataStore("_data/db.json", keyProperty: "_id")
to fix this issue. Thank you.
from json-flatfile-datastore.
Good job. Thank you for hard work.
from json-flatfile-datastore.
Related Issues (20)
- Dynamic update of child items HOT 1
- Using DI with a console app should I inject as singelton or transient? HOT 2
- Index on property HOT 1
- Update function not working HOT 5
- Simple encryption support
- 看到这个我醉了
- No Timeout/Error on file inaccessibility HOT 1
- System.OperationCanceledException When Disposing DataStore HOT 7
- Synchronizing Async Methods HOT 2
- Providing My Own Primary Keys HOT 1
- No Iterator over Collections? HOT 2
- Minified or compact version of JSON possible? HOT 4
- How to get ToList() ? HOT 1
- Add Support for using a directory as the store, with each document within as a child
- Single Item last field gets duplicated on Replace (When upsert: true and field names in Datastore are in camel case) HOT 5
- Support filesystem abstraction HOT 1
- System.Text.Json HOT 2
- Update is not updating the json File HOT 6
- Error handling Guid in ObjectExtensions.AddDataToField HOT 1
- Weird NotFoundException on Debian 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-flatfile-datastore.