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

Add optional _last_modified metadata to JSON #1

Open
ttu opened this issue Oct 15, 2017 · 0 comments
Open

Add optional _last_modified metadata to JSON #1

ttu opened this issue Oct 15, 2017 · 0 comments
Assignees

Comments

@ttu
Copy link
Owner

ttu commented Oct 15, 2017

Option to add last modified timestamp for each object.

{
  "user": [
    {
      "id": 1,
      "name": "James",
      "age": 40,
      "location": "NY",
      "work": {
        "name": "ACME",
        "location": "NY"
      },
      "_last_modified": "2017-10-14T09:45:10"
    },
    {
      "id": 2,
      "name": "Phil",
      "age": 25,
      "location": "London",
      "work": {
        "name": "Box Company",
        "location": "London"
      },
      "_last_modified":  "2017-10-15T12:12:12"
    }

Typed models need to have property defined

public DateTime _last_modified { get; set; }

Feature branch: https://github.com/ttu/json-flatfile-datastore/tree/add-last-modified

@ttu ttu self-assigned this Oct 15, 2017
@ttu ttu added on hold and removed in progress labels Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant