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

DocSet does not set Id when saving a new item #1

Closed
philrowan opened this issue Jan 22, 2016 · 1 comment
Closed

DocSet does not set Id when saving a new item #1

philrowan opened this issue Jan 22, 2016 · 1 comment

Comments

@philrowan
Copy link

IStorage should set the id if the result is Xtricate.DocSet.StorageAction.Inserted.

var result = _storage.Upsert(entity.Id, entity);

I would expect that the entity.Id != 0 after this call if that item was inserted. Or maybe I am missing that ID management is left to the consumer?

@vip32
Copy link
Owner

vip32 commented Jan 23, 2016

id management is left to consumer. actually it is the key you have to provide, as it's a key/value store.

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

2 participants