{"id":13480683,"url":"https://github.com/RobThree/MongoRepository","last_synced_at":"2025-03-27T11:30:45.342Z","repository":{"id":27241094,"uuid":"30712914","full_name":"RobThree/MongoRepository","owner":"RobThree","description":"Repository abstraction layer on top of Official MongoDB C# driver","archived":true,"fork":false,"pushed_at":"2020-01-13T12:37:00.000Z","size":11770,"stargazers_count":309,"open_issues_count":16,"forks_count":140,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-03-02T03:21:48.273Z","etag":null,"topics":["api","c-sharp","dotnet","mongodb","repository"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/MongoRepository/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"thelgevold/angular-samples","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobThree.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}},"created_at":"2015-02-12T16:56:30.000Z","updated_at":"2025-01-23T17:52:07.000Z","dependencies_parsed_at":"2022-07-12T05:46:10.859Z","dependency_job_id":null,"html_url":"https://github.com/RobThree/MongoRepository","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobThree%2FMongoRepository","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobThree%2FMongoRepository/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobThree%2FMongoRepository/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobThree%2FMongoRepository/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobThree","download_url":"https://codeload.github.com/RobThree/MongoRepository/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245835901,"owners_count":20680289,"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":["api","c-sharp","dotnet","mongodb","repository"],"created_at":"2024-07-31T17:00:43.586Z","updated_at":"2025-03-27T11:30:45.062Z","avatar_url":"https://github.com/RobThree.png","language":"C#","readme":"# ![Logo](https://raw.githubusercontent.com/RobThree/MongoRepository/master/mongorepositorylogo.png) Project Description\n\nAn easy to use library to use MongoDB with .NET. It implements a Repository pattern on top of Official MongoDB C# driver. This project is now available as a [NuGet](https://www.nuget.org) package for your convenience. If you're new to NuGet, [check it out](http://docs.nuget.org/); it's painless, easy and fast. You can find this project by [searching for MongoRepository](https://www.nuget.org/packages?q=mongorepository) in NuGet (or [simply clicking here](http://nuget.org/packages/MongoRepository)).\n\nCheck the [documentation](https://github.com/RobThree/MongoRepository/wiki/Documentation) for a step-by-step example and more advanced usage.\n\n## Example:\n\n```c#\n// The Entity base-class is provided by MongoRepository\n// for all entities you want to use in MongoDb\npublic class Customer : Entity \n{\n        public string FirstName { get; set; }\n        public string LastName { get; set; }\n}\n\npublic class CustomerRepoTest\n{\n        public void Test()\n        {\n            var repo = new MongoRepository\u003cCustomer\u003e();\n\n            // adding new entity\n            var newCustomer = new Customer {\n                FirstName = \"Steve\",\n                LastName = \"Cornell\"\n            };\n\n            repo.Add(newCustomer);\n\n            // searching\n            var result = repo.Where(c =\u003e c.FirstName == \"Steve\");\n\n            // updating \n            newCustomer.LastName = \"Castle\";\n            repo.Update(newCustomer);\n        }\n}\n```\n[\u003cimg src=\"http://i.imgur.com/2yf60gf.png\" alt=\"Productivity Visual Studio add-in for C#, VB.NET, XML, XAML, ASP.NET and more\"\u003e](http://www.jetbrains.com/resharper/features/index.html)\n","funding_links":[],"categories":["Libraries"],"sub_categories":["C#/.NET ###"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRobThree%2FMongoRepository","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRobThree%2FMongoRepository","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRobThree%2FMongoRepository/lists"}