{"id":26155453,"url":"https://github.com/ntdls/ntdls.sqlmanagedconnectivity","last_synced_at":"2026-02-28T17:01:46.144Z","repository":{"id":210800364,"uuid":"727494483","full_name":"NTDLS/NTDLS.SqlManagedConnectivity","owner":"NTDLS","description":"Wraps a native SQL Server connection, allows for easy field/value enumeration and manages cleanup.","archived":false,"fork":false,"pushed_at":"2025-11-14T02:57:46.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-14T03:33:07.084Z","etag":null,"topics":["nuget","sql-server","wrapper"],"latest_commit_sha":null,"homepage":"https://networkdls.com/Entity/ntdls-sqlmanagedconnectivity","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/NTDLS.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":"2023-12-05T01:17:14.000Z","updated_at":"2025-11-14T02:57:42.000Z","dependencies_parsed_at":"2025-03-11T08:56:29.561Z","dependency_job_id":"6ca4c824-8d8e-424b-954e-be846b422169","html_url":"https://github.com/NTDLS/NTDLS.SqlManagedConnectivity","commit_stats":null,"previous_names":["ntdls/ntdls.sqlmanagedconnectivity"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/NTDLS/NTDLS.SqlManagedConnectivity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.SqlManagedConnectivity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.SqlManagedConnectivity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.SqlManagedConnectivity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.SqlManagedConnectivity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NTDLS","download_url":"https://codeload.github.com/NTDLS/NTDLS.SqlManagedConnectivity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NTDLS%2FNTDLS.SqlManagedConnectivity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29943653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T13:49:17.081Z","status":"ssl_error","status_checked_at":"2026-02-28T13:48:50.396Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["nuget","sql-server","wrapper"],"created_at":"2025-03-11T08:56:11.620Z","updated_at":"2026-02-28T17:01:46.038Z","avatar_url":"https://github.com/NTDLS.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NTDLS.SqlManagedConnectivity\n\n📦 Be sure to check out the NuGet package: https://www.nuget.org/packages/NTDLS.SqlManagedConnectivity\n\nWraps a native SQL Server connection, allows for easy field/value enumeration and manages cleanup.\n\nThis library is a replacement for native-style SQL Server access, if you are looking something more POCO/Dapper,\nthen check out the https://github.com/NTDLS/NTDLS.SqlServerDapperWrapper.\n\n\u003e**Simple example:**\n\u003e\n\u003eIn this example we are opening a connection to the local SQL Server (\".\") and the database (\"Dummyload\"), then selecting all rows and columns from the table [Test].\n\u003e This demonstrates how we can enumerate the fields and their types as well as the rows and their values with several options for conversion.\n```csharp\nusing (var connection = new SqlManagedConnection(\".\", \"Dummyload\"))\n{\n    using (var reader = connection.ExecuteQuery(\"SELECT * FROM Test WHERE Account \u003c\u003e @Account\", new { Account = 4104 }))\n    {\n        //Loop through all fields:\n        foreach (var field in reader.Fields)\n        {\n            Console.WriteLine($\"Field: '{field.Name}', Data Type: '{field.DataTypeName}', Type: '{field.Type.Name}'\");\n        }\n\n        //Loop though all rows:\n        foreach (var row in reader)\n        {\n            //Loop though all values in the row:\n            foreach (var value in row)\n            {\n                Console.WriteLine($\"{value.Field.Name} -\u003e '{value.As\u003cstring\u003e()?.Trim()}'\");\n            }\n\n                var doublePercentTaxable1 = row.Value\u003cdouble\u003e(\"PercentTaxable\");\n                var decimalPercentTaxable1 = row.Value\u003cdecimal\u003e(\"OriginalAmount\");\n                var stringPercentTaxable1 = row.Value\u003cstring\u003e(\"OriginalAmount\");\n                var intPercentTaxable1 = row.Value\u003cint\u003e(\"OriginalAmount\");\n        }\n    }\n}\n```\n\n## License\n[Apache-2.0](https://choosealicense.com/licenses/apache-2.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntdls%2Fntdls.sqlmanagedconnectivity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntdls%2Fntdls.sqlmanagedconnectivity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntdls%2Fntdls.sqlmanagedconnectivity/lists"}