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