Exemplo n.º 1
0
 public MongoDbCommentRepository(MongoConnectionFactory database, IMapper mapper)
     : base(database, database.Blog.GetCollection <Models.CommentModel>("comment"), mapper)
 {
     this.mapper = mapper;
 }
Exemplo n.º 2
0
 public MongoDbTagRepository(MongoConnectionFactory database, IMapper mapper)
     : base(database, database.Blog.GetCollection <Models.TagModel>("tag"), mapper)
 {
     this.mapper = mapper;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 6
0
 public MongoDbImageRepository(MongoConnectionFactory database, IMapper mapper)
     : base(database, database.Blog.GetCollection <Models.ImageModel>("image"), mapper)
 {
     this.mapper = mapper;
 }