{"id":22337357,"url":"https://github.com/nikitaignatov/x-editable-net","last_synced_at":"2025-03-26T08:23:04.973Z","repository":{"id":209751204,"uuid":"56082393","full_name":"nikitaignatov/x-editable-net","owner":"nikitaignatov","description":"Basic implementation of inline edit API written in .Net using EF","archived":false,"fork":false,"pushed_at":"2016-04-27T22:23:22.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T09:44:39.076Z","etag":null,"topics":["entity-framework","inline-editing","x-editable"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikitaignatov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-04-12T17:06:31.000Z","updated_at":"2019-08-12T22:11:02.000Z","dependencies_parsed_at":"2023-11-29T01:29:19.556Z","dependency_job_id":"5d818eec-ccac-49b0-988c-cd3d78fd605c","html_url":"https://github.com/nikitaignatov/x-editable-net","commit_stats":null,"previous_names":["nikitaignatov/x-editable-net"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitaignatov%2Fx-editable-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitaignatov%2Fx-editable-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitaignatov%2Fx-editable-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitaignatov%2Fx-editable-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikitaignatov","download_url":"https://codeload.github.com/nikitaignatov/x-editable-net/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245615845,"owners_count":20644541,"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","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":["entity-framework","inline-editing","x-editable"],"created_at":"2024-12-04T06:09:39.154Z","updated_at":"2025-03-26T08:23:04.947Z","avatar_url":"https://github.com/nikitaignatov.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# x-editable-net\n\nThis library supports [x-editable](https://github.com/vitalets/x-editable) updates with EntityFramework.\n\n````csharp\npublic class DefaultRequest\n{\n    public int pk { get; set; }\n    public string name { get; set; }\n    public string value { get; set; }\n    public string entity { get; set; }\n}\n````\n\nApi endpoint for handling the updates, int the the primary key type. \n\n````csharp\n[HttpPatch]\npublic dynamic InlineEdit([FromBody]DefaultRequest request)\n{\n    try\n    {\n        var command = new UpdateEntityCommand\u003cint\u003e(request.pk, request.value, request.name, exportedTypes[request.entity]);\n        handler.Handle(command);\n        return Ok();\n    }\n    catch (Exception ex)\n    {\n        return BadRequest($\"Failed due to  {JsonConvert.SerializeObject(ex, Formatting.Indented)}\");\n    }\n}\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikitaignatov%2Fx-editable-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikitaignatov%2Fx-editable-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikitaignatov%2Fx-editable-net/lists"}