{"id":19602794,"url":"https://github.com/ashfaqalizardariofficial/modelconverter","last_synced_at":"2026-06-13T00:32:38.949Z","repository":{"id":45991802,"uuid":"429817397","full_name":"AshfaqAliZardariOfficial/ModelConverter","owner":"AshfaqAliZardariOfficial","description":"A C# Library to convert the model class to idictionary and datatable to list model class.","archived":false,"fork":false,"pushed_at":"2022-07-19T15:14:21.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-28T22:39:39.276Z","etag":null,"topics":["ashfaq-ali-zardari","ashfaq-ali-zardari-official","converter","converting","datatable","idictionary","model-class"],"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/AshfaqAliZardariOfficial.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"ashfaqalizardari","open_collective":null,"ko_fi":"ashfaqalizardari","tidelift":null,"community_bridge":null,"liberapay":"ashfaqalizardari","issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.paypal.me/AshfaqAliZardari247"]}},"created_at":"2021-11-19T14:00:33.000Z","updated_at":"2021-11-23T14:57:50.000Z","dependencies_parsed_at":"2022-08-25T11:01:31.763Z","dependency_job_id":null,"html_url":"https://github.com/AshfaqAliZardariOfficial/ModelConverter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/AshfaqAliZardariOfficial/ModelConverter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshfaqAliZardariOfficial%2FModelConverter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshfaqAliZardariOfficial%2FModelConverter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshfaqAliZardariOfficial%2FModelConverter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshfaqAliZardariOfficial%2FModelConverter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AshfaqAliZardariOfficial","download_url":"https://codeload.github.com/AshfaqAliZardariOfficial/ModelConverter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshfaqAliZardariOfficial%2FModelConverter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34268187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["ashfaq-ali-zardari","ashfaq-ali-zardari-official","converter","converting","datatable","idictionary","model-class"],"created_at":"2024-11-11T09:26:17.908Z","updated_at":"2026-06-13T00:32:38.922Z","avatar_url":"https://github.com/AshfaqAliZardariOfficial.png","language":"C#","funding_links":["https://patreon.com/ashfaqalizardari","https://ko-fi.com/ashfaqalizardari","https://liberapay.com/ashfaqalizardari","https://www.paypal.me/AshfaqAliZardari247","https://paypal.me/ashfaqalizardari247?country.x=CA\u0026locale.x=en_US","https://www.buymeacoffee.com/ashfaqalizardari"],"categories":[],"sub_categories":[],"readme":"# ModelConverter\n A C# Library to convert the model class to idictionary and datatable to list model class.\n\n## [Install Package](https://www.nuget.org/packages/AshfaqAliZardariOfficial.Util.ModelConverter/)\n\u003e ##### Using Package Manager\n\u003e ```\n\u003e Install-Package AshfaqAliZardariOfficial.Util.ModelConverter -Version 1.1.1\n\u003e ```\n\u003e ##### Using .NET CLI\n\u003e \n\u003e ```\n\u003e dotnet add package AshfaqAliZardariOfficial.Util.ModelConverter --version 1.1.1\n\u003e ```\n\u003e ##### Using PackageReference\n\u003e \n\u003e ```\n\u003e \u003cPackageReference Include=\"AshfaqAliZardariOfficial.Util.ModelConverter\" Version=\"1.1.1\" /\u003e\n\u003e ```\n\u003e ##### Using Paket CLI\n\u003e ```\n\u003e paket add AshfaqAliZardariOfficial.Util.ModelConverter --version 1.1.1\n\u003e ```\n\u003e ##### Using Script \u0026 Interactive\n\u003e ```\n\u003e #r \"nuget: AshfaqAliZardariOfficial.Util.ModelConverter, 1.1.1\"\n\u003e ```\n\u003e ##### Using Cake\n\u003e ```\n\u003e // Install AshfaqAliZardariOfficial.Util.ModelConverter as a Cake Addin\n\u003e #addin nuget:?package=AshfaqAliZardariOfficial.Util.ModelConverter\u0026version=1.1.1\n\u003e \n\u003e // Install AshfaqAliZardariOfficial.Util.ModelConverter as a Cake Tool\n\u003e #tool nuget:?package=AshfaqAliZardariOfficial.Util.ModelConverter\u0026version=1.1.1\n\u003e ```\n\n## How do I use\n##### Convert the Model Class to IDictionary\u003cstring, object\u003e object.\n```csharp\nUserModel User = new UserModel(); // Your model class object.\nUser.name = \"Ashfaq Ali Zardari\"; // Your model class property.\nUser.email = \"ashfaqalizardariofficial@gmail.com\"; // Your model class property.\n\n// Get key values IDictionary\u003cstring, object\u003e parameters from your user model class.\nIDictionary\u003cstring, object\u003e parameters = ModelConverter\u003cRecipientModel\u003e.GetDictionary(User); \n```\nOptional\n```csharp\n// The following model class name property will not be added to IDictionary\u003cstring, object\u003e object.\nList\u003cstring\u003e HiddenProperties = new string[];\nHiddenProperties.Add(\"name\");\n\n// Get key values IDictionary\u003cstring, object\u003e parameters from your user model class except\n// for HiddenProperties string name properties.\nIDictionary\u003cstring, object\u003e parameters = ModelConverter\u003cRecipientModel\u003e.GetDictionary(User, HiddenProperties); \n\n```\n##### Convert System.Data.DataTable to System.Collections.Generic.List\u003cModelClass\u003e object.\n```csharp\nDataTable UsersTable = // Your users table data.\n// Get Users list List\u003cUserModel\u003e from your users datatable.\nList\u003cUserModel\u003e Users = ModelConverter\u003cUserModel\u003e.GetModelList\u003cUserModel\u003e(UsersTable); \n```\n\n## :clock3: Versions\n| Version | Last updated |\n| --- | --- |\n| [1.1.1](https://www.nuget.org/packages/AshfaqAliZardariOfficial.Util.ModelConverter/1.1.1) | Nov 22, 2021, 4:35 PM GMT+5 |\n| [1.1.0](https://www.nuget.org/packages/AshfaqAliZardariOfficial.Util.ModelConverter/1.1.0) | Nov 20, 2021, 8:15 PM GMT+5 |\n| [1.0.0](https://www.nuget.org/packages/AshfaqAliZardariOfficial.Util.ModelConverter/1.0.0) | Nov 20, 2021, 12:29 PM GMT+5 |\n\n## :book: Release Notes\n**v1.1.1**\n- Small bug fixed on GetModelList.\n \n**v1.1.0**\n- Hide model properties feature added on GetDictionary.\n\n**v1.0.0**\n- Convert System.Data.DataTable to System.Collections.Generic.List\u003cModelClass\u003e object.\n- Convert the Model Class to IDictionary\u003cstring, object\u003e object.\n## Contact and Supporting Info\nFeel free to contact me on \u003ca href=\"mailto:ashfaqalizardariofficial@gmail.com\" target=\"_blank\" title=\"ashfaqalizardariofficial@gmail.com\"\u003e\u003cimg src=\"https://ssl.gstatic.com/ui/v1/icons/mail/rfr/logo_gmail_lockup_default_1x_r2.png\" alt=\"ashfaqalizardariofficial@gmail.com\" width=\"70\" /\u003e\u003c/a\u003e  \n  \n  \u003ca href=\"https://paypal.me/ashfaqalizardari247?country.x=CA\u0026locale.x=en_US\" target=\"_blank\" title=\"paypal.me/ashfaqalizardari247\"\u003e\u003cimg src=\"https://www.paypalobjects.com/paypal-ui/logos/svg/paypal-color.svg\" alt=\"PayPalMe\" width=\"160\" /\u003e\u003c/a\u003e    \u003ca href=\"https://www.buymeacoffee.com/ashfaqalizardari\" target=\"_blank\" title=\"buymeacoffee.com/ashfaqalizardari\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" width=\"160\" /\u003e\u003c/a\u003e\n\n## :balance_scale: License\n  Copyright (c) Ashfaq Ali Zardari. All rights reserved.\n  \n  Licensed under the [MIT](https://github.com/AshfaqAliZardariOfficial/ModelConverter/blob/master/LICENSE) License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashfaqalizardariofficial%2Fmodelconverter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashfaqalizardariofficial%2Fmodelconverter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashfaqalizardariofficial%2Fmodelconverter/lists"}