public MongoDbCommentRepository(MongoConnectionFactory database, IMapper mapper) : base(database, database.Blog.GetCollection <Models.CommentModel>("comment"), mapper) { this.mapper = mapper; }
public MongoDbTagRepository(MongoConnectionFactory database, IMapper mapper) : base(database, database.Blog.GetCollection <Models.TagModel>("tag"), mapper) { this.mapper = mapper; }
public MongoDbRepository(MongoConnectionFactory database, IMongoCollection <TDbModel> collection, IMapper mapper) { Database = database; this.Collection = collection; this.mapper = mapper; }
public MongoDbArticleRepository(MongoConnectionFactory database, IMapper mapper) : base(database, database.Blog.GetCollection <Models.ArticleModel>("article"), mapper) { }
public MongoDbVisitorRepository(MongoConnectionFactory database, IMapper mapper) : base(database, database.Blog.GetCollection <Models.VisitorModel>("visitor"), mapper) { this.mapper = mapper; }
public MongoDbImageRepository(MongoConnectionFactory database, IMapper mapper) : base(database, database.Blog.GetCollection <Models.ImageModel>("image"), mapper) { this.mapper = mapper; }