Skip to content

Instantly share code, notes, and snippets.

@mizrael
Created December 19, 2015 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mizrael/a06bc0bc23223fa62345 to your computer and use it in GitHub Desktop.
Save mizrael/a06bc0bc23223fa62345 to your computer and use it in GitHub Desktop.
basic C# interface for a MongoDB context
public interface IDbContext
{
IRepository<Entities.Post> Posts { get; }
IRepository<Entities.User> Users { get; }
IRepository<Entities.Tag> Tags { get; }
IRepository<Entities.Taxonomy> Taxonomies { get; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment