{"id":20904685,"url":"https://github.com/sage/sdatacsharpclientlib","last_synced_at":"2026-01-10T06:04:26.236Z","repository":{"id":137384120,"uuid":"624389","full_name":"Sage/SDataCSharpClientLib","owner":"Sage","description":"SData .NET Client Library, written in C#, based on Microsoft Argotic","archived":true,"fork":false,"pushed_at":"2012-12-05T20:18:52.000Z","size":3449,"stargazers_count":33,"open_issues_count":6,"forks_count":23,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-24T01:37:02.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sage.png","metadata":{"files":{"readme":"README.mdown","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}},"created_at":"2010-04-22T22:35:35.000Z","updated_at":"2024-08-29T22:20:17.000Z","dependencies_parsed_at":"2023-03-15T08:45:50.882Z","dependency_job_id":null,"html_url":"https://github.com/Sage/SDataCSharpClientLib","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sage%2FSDataCSharpClientLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sage%2FSDataCSharpClientLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sage%2FSDataCSharpClientLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sage%2FSDataCSharpClientLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sage","download_url":"https://codeload.github.com/Sage/SDataCSharpClientLib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253882711,"owners_count":21978540,"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":[],"created_at":"2024-11-18T13:18:29.911Z","updated_at":"2025-05-13T05:30:47.608Z","avatar_url":"https://github.com/Sage.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sage SData Client Libraries for .NET\n====================================\n\nThis repository contains the following\n\n*\tA .NET 3.5 library for consuming [SData](http://sdata.sage.com).\n*\tA set of unit tests\n*\tA WinForms application, which demonstrates various features of the API\n\nFor information about the client library and examples on how to use it, check out \"Intro to SData CSharp Client Lib.doc\" in the [docs](https://github.com/SageScottsdalePlatform/SDataCSharpClientLib/tree/master/docs/) subfolder.\n\nAlso, keep an eye on the [Wiki](https://github.com/SageScottsdalePlatform/SDataCSharpClientLib/wikis) for up-to-date information.\n\n## Examples\n\n#### Single Resources (Entry)\nSingle Resources are returned to the SData Client Libraries as an AtomEntry.  Simply specify the ResourceKind and Resource Selector and call the Read method of the SDataSingleResourceRequest.\n\t\n\tvar service = new SDataService(\"http://localhost/sdata/slx/dynamic/-/\", \"admin\", \"\");\u000b\n\tvar request = new SDataSingleResourceRequest(service)\u000b\n\t{\u000b   \n\t\tResourceKind = \"contacts\",\n\t\tResourceSelector = \"'CGHEA0000001'\"\u000b\n\t};\u000b\n\tvar entry = request.Read();\u000b\n\tvar payload = entry.GetSDataPayload();\n\n#### Resource Collections (Feed)\nResource collections are returned to the SData Client Libraries as an AtomFeed. Simply specify the desired ResourceKind and call the Read method on the SDataResourceCollectionRequest object.\n\n\tvar service = new SDataService(\"http://localhost/sdata/slx/dynamic/-/\", \"admin\", \"\");\n\tvar request = new SDataResourceCollectionRequest(service)\u000b \n\t{\u000b    \n\t    ResourceKind = \"contacts\"\u000b \n\t};\u000b \n\tvar feed = request.Read();\u000b \n\tforeach (var entry in feed.Entries)\u000b \n\t{\u000b   \n\t    var payload = entry.GetSDataPayload();\u000b \n\t}\n\n#### Batch Operations\n\n\tvar contactIds = new[] {\"CGHEA0002670\", \"CDEMOA00003A\", \"CDEMOA000037\"};\u000b \n\tvar service = new SDataService(\"http://localhost/sdata/slx/dynamic/-/\", \"admin\", \"\");\u000b \n\tusing (var batch = new SDataBatchRequest(service) {ResourceKind = \"contacts\"})\u000b \n\t{\u000b    \n\t\tvar request = new SDataSingleResourceRequest(service) {ResourceKind = \"contacts\"};\u000b    \n\t\tforeach (var id in contactIds)\u000b    \n\t\t{\u000b        \n\t\t\trequest.ResourceSelector = string.Format(\"'{0}'\", id);\u000b        \n\t\t\trequest.Read();\u000b    \n\t\t}\u000b    \n\t\tvar feed = batch.Commit();\u000b    \n\t\tforeach (var entry in feed.Entries)\u000b    \n\t\t{\u000b        \n\t\t\tvar values = entry.GetSDataPayload().Values;\u000b        \n\t\t\tvalues.Clear(); //no need to send back unchanged values\u000b        \n\t\t\tvalues[\"Type\"] = \"Decision Maker\";\u000b        \n\t\t\trequest.Entry = entry;\u000b        \n\t\t\trequest.Update();\u000b    \n\t\t}\u000b    feed = batch.Commit();\u000b    \n\t\tforeach (var entry in feed.Entries)\u000b    \n\t\t{\u000b       \n\t\t\tDebug.Assert(entry.GetSDataHttpStatus() == HttpStatusCode.OK);\u000b    \n\t\t}\u000b \n\t}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsage%2Fsdatacsharpclientlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsage%2Fsdatacsharpclientlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsage%2Fsdatacsharpclientlib/lists"}