{"id":22206738,"url":"https://github.com/usercode/objectchangetracking","last_synced_at":"2025-10-28T09:15:05.299Z","repository":{"id":109494269,"uuid":"158539238","full_name":"usercode/ObjectChangeTracking","owner":"usercode","description":"It's a simple library to track property and collection changes in your objects.","archived":false,"fork":false,"pushed_at":"2023-05-28T21:13:23.000Z","size":40,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-19T17:03:46.608Z","etag":null,"topics":["csharp","self-tracking-entities","tracking"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usercode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-21T11:42:06.000Z","updated_at":"2024-01-04T11:22:54.000Z","dependencies_parsed_at":"2024-12-02T18:27:59.924Z","dependency_job_id":null,"html_url":"https://github.com/usercode/ObjectChangeTracking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/usercode/ObjectChangeTracking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usercode%2FObjectChangeTracking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usercode%2FObjectChangeTracking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usercode%2FObjectChangeTracking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usercode%2FObjectChangeTracking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usercode","download_url":"https://codeload.github.com/usercode/ObjectChangeTracking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usercode%2FObjectChangeTracking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281412859,"owners_count":26496815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","self-tracking-entities","tracking"],"created_at":"2024-12-02T18:17:45.962Z","updated_at":"2025-10-28T09:15:05.258Z","avatar_url":"https://github.com/usercode.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ObjectChangeTracking\nIt's a simple library to track property and collection changes in your objects.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n[![NuGet](https://img.shields.io/nuget/v/ObjectChangeTracking.svg?style=flat-square)](https://www.nuget.org/packages/ObjectChangeTracking/)\n\n## How to use it ##\n\n```csharp\nvar customer = new Customer();\ncustomer.Lastname = \"Doe\";\ncustomer.Firstname = \"Jack\";\n\ncustomer = customer.AsTrackable();\ncustomer.Firstname = \"John\";\n\nvar trackableCustomer = (ITrackableObject)customer;\n\nbool isChanged = trackableCustomer.IsChanged; // -\u003e true\n\nforeach(IPropertyChange changedProperty in trackableCustomer.ChangedProperties)\n{\n    if(changedProperty is SimplePropertyChange simpleProperty)\n    {\n        Console.WriteLine(simpleProperty.Name); // -\u003e \"Firstname\"\n        Console.WriteLine(simpleProperty.OldValue); // -\u003e \"Jack\"\n        Console.WriteLine(simpleProperty.CurrentValue); // -\u003e \"John\"        \n    }\n    else if(changedProperty is CollectionPropertyChange collectionProperty)\n    {\n        Console.WriteLine(collectionProperty.Name);\n        \n        foreach(var added in collectionProperty.Added)\n        {\n             Console.WriteLine(\"Added: \" + added);\n        }\n        \n        foreach(var removed in collectionProperty.Removed)\n        {\n             Console.WriteLine(\"Removed: \" + removed);\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusercode%2Fobjectchangetracking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusercode%2Fobjectchangetracking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusercode%2Fobjectchangetracking/lists"}