This repository was archived by the owner on Feb 22, 2020. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork138
Repository abstraction layer on top of Official MongoDB C# driver
License
NotificationsYou must be signed in to change notification settings
RobThree/MongoRepository
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
An 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 aNuGet package for your convenience. If you're new to NuGet,check it out; it's painless, easy and fast. You can find this project bysearching for MongoRepository in NuGet (orsimply clicking here).
Check thedocumentation for a step-by-step example and more advanced usage.
// The Entity base-class is provided by MongoRepository// for all entities you want to use in MongoDbpublicclassCustomer:Entity{publicstringFirstName{get;set;}publicstringLastName{get;set;}}publicclassCustomerRepoTest{publicvoidTest(){varrepo=newMongoRepository<Customer>();// adding new entityvarnewCustomer=newCustomer{FirstName="Steve",LastName="Cornell"};repo.Add(newCustomer);// searchingvarresult=repo.Where(c=>c.FirstName=="Steve");// updatingnewCustomer.LastName="Castle";repo.Update(newCustomer);}}
About
Repository abstraction layer on top of Official MongoDB C# driver
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.

