GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - RobThree/MongoRepository: Repository abstraction layer on top of Official MongoDB C# driver

This repository was archived by the owner on Feb 22, 2020. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

106 Commits
106 Commits

Folders and files

NameName
Last commit message
Last commit date
Help
Help
 
 
MongoRepository
MongoRepository
 
 
MongoRepositoryTests
MongoRepositoryTests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
MongoRepository.nuspec
MongoRepository.nuspec
 
 
MongoRepository.sln
MongoRepository.sln
 
 
README.md
README.md
 
 
buildnugetpackage.cmd
buildnugetpackage.cmd
 
 
install.ps1
install.ps1
 
 
mongorepositorylogo.png
mongorepositorylogo.png
 
 
uninstall.ps1
uninstall.ps1
 
 

Repository files navigation

Logo Project Description

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 a NuGet package for your convenience. If you're new to NuGet, check it out; it's painless, easy and fast. You can find this project by searching for MongoRepository in NuGet (or simply clicking here).

Check the documentation for a step-by-step example and more advanced usage.

Example:

// The Entity base-class is provided by MongoRepository
// for all entities you want to use in MongoDb
public class Customer : Entity 
{
        public string FirstName { get; set; }
        public string LastName { get; set; }
}

public class CustomerRepoTest
{
        public void Test()
        {
            var repo = new MongoRepository<Customer>();

            // adding new entity
            var newCustomer = new Customer {
                FirstName = "Steve",
                LastName = "Cornell"
            };

            repo.Add(newCustomer);

            // searching
            var result = repo.Where(c => c.FirstName == "Steve");

            // updating 
            newCustomer.LastName = "Castle";
            repo.Update(newCustomer);
        }
}

Productivity Visual Studio add-in for C#, VB.NET, XML, XAML, ASP.NET and more

About

Repository abstraction layer on top of Official MongoDB C# driver

www.nuget.org/packages/MongoRepository/

Topics

apic-sharpdotnetmongodbrepository

Resources

Readme
MIT license
Activity

Stars

312 stars

Watchers

2 watching

Forks

138 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.