{"id":19100198,"url":"https://github.com/SqlRepo/SqlRepo","last_synced_at":"2025-04-18T17:33:01.315Z","repository":{"id":65414050,"uuid":"74498494","full_name":"SqlRepo/SqlRepo","owner":"SqlRepo","description":"SqlRepo is a .NET library for building SQL statements with Lambda Expressions and mapping results to objects","archived":false,"fork":false,"pushed_at":"2024-01-16T19:48:35.000Z","size":2824,"stargazers_count":31,"open_issues_count":8,"forks_count":7,"subscribers_count":7,"default_branch":"develop","last_synced_at":"2024-11-05T05:17:32.049Z","etag":null,"topics":["dotnet","dotnetcore","netcore","netstandard","orm","repository","repository-pattern","sql","sqlserver"],"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/SqlRepo.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":"2016-11-22T17:44:31.000Z","updated_at":"2023-02-13T12:24:07.000Z","dependencies_parsed_at":"2024-06-18T21:35:38.382Z","dependency_job_id":"97a94b5d-7c1c-438a-94b7-1b7bdb6a404f","html_url":"https://github.com/SqlRepo/SqlRepo","commit_stats":null,"previous_names":["testpossessed/sqlrepo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SqlRepo%2FSqlRepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SqlRepo%2FSqlRepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SqlRepo%2FSqlRepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SqlRepo%2FSqlRepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SqlRepo","download_url":"https://codeload.github.com/SqlRepo/SqlRepo/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223783092,"owners_count":17201903,"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":["dotnet","dotnetcore","netcore","netstandard","orm","repository","repository-pattern","sql","sqlserver"],"created_at":"2024-11-09T03:52:33.520Z","updated_at":"2024-11-09T03:53:18.426Z","avatar_url":"https://github.com/SqlRepo.png","language":"C#","readme":"[![Build Status](https://dev.azure.com/mikehanson/SqlRepoBuildAndRelease/_apis/build/status/SqlRepo-CI?branchName=master)](https://dev.azure.com/mikehanson/SqlRepoBuildAndRelease/_build/latest?definitionId=5\u0026branchName=master)\n\n# SqlRepo\nWe are please to announce the release of 3.0.0 of SqlRepo, our implementation of the Repository Pattern that allows you to build and execute CRUD SQL statements using Lambda Expressions and strong typing.\n\nIn this release we have completely re-written the entity mapping feature and extended it to provide full control of how data sets are mapped to entities using EntityMappingProfiles. See [Entity Mapping](https://github.com/SqlRepo/SqlRepo/wiki/Entity-Mapping) for more information.\n\n[Read the documentation on our Wiki](https://github.com/sqlrepo/sqlrepo/wiki)\n\nor get started using one of our guides\n\n[Getting Started (IoC)](https://github.com/sqlrepo/sqlrepo/wiki/Getting-Started-IoC)\n\n[Getting Started (Static Factory)](https://github.com/sqlrepo/sqlrepo/wiki/Getting-Started-Static-Factory)\n\n## Features\n* Compatible with .NET Standard 2.0 and .NET Framework 4.7\n* Intuitively build SQL statements using C# Lambda Expressions\n* Map SQL query results to plain old CLR objects\n* Low memory footprint and [high performance](https://github.com/SqlRepo/Benchmarks)\n* Almost 100% unit test coverage\n* Full control of entity mapping\n\n## Installation\n\n**NuGet Package Manager**\n```\nInstall-Package SqlRepo.SqlServer\n```\n\n**dotnet cli**\n```\ndotnet add package SqlRepo.SqlServer\n```\n\n## Example\n```csharp\n\npublic class GettingStarted\n{\n    private IRepositoryFactory repositoryFactory;\n\n    public GettingStarted(IRepositoryFactory repositoryFactory)\n    {\n        this.repositoryFactory = repositoryFactory;\n    }\n\n    public void DoIt()\n    {\n         var repository = this.repositoryFactory.Create\u003cToDo\u003e();\n         var results = repository.Query()\n         .Select(e =\u003e e.Id, e =\u003e e.Task, e =\u003e e.CreatedDate)\n         .Where(e =\u003e e.IsCompleted == false)\n         .Go();\n    }\n}\n\n```\nGenerates the following SQL statement and maps the results back to the list of ToDo objects.\n\n```sql\n\nSELECT [dbo].[ToDo].[Id], [dbo].[ToDo].[Task], [dbo].[ToDo].[CreatedDate]\nFROM [dbo].[ToDo]\nWHERE [dbo].[ToDo].[IsCompleted] = 0;\n\n```\n","funding_links":[],"categories":["sql","C# #"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSqlRepo%2FSqlRepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSqlRepo%2FSqlRepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSqlRepo%2FSqlRepo/lists"}