예제 #1
0
 public PostsController(
     InstaPostContext context,
     IPostsRepository postRepo,
     ILikesRepository likesRepo
     )
 {
     db             = context;
     this.postRepo  = postRepo;
     this.likesRepo = likesRepo;
 }
예제 #2
0
 public UsersController(
     InstaPostContext context,
     IUsersRepository userRepo,
     IFollowersRepository followerRepo,
     IPostsRepository postRepo
     )
 {
     db                = context;
     this.userRepo     = userRepo;
     this.followerRepo = followerRepo;
     this.postRepo     = postRepo;
 }
예제 #3
0
        public PostsRepository(
            InstaPostContext context,
            IOptions <CloudinaryConfig> cloudinaryConfig
            )
        {
            this.db = context;

            CloudinaryConfig cloudConfig = cloudinaryConfig.Value;
            Account          account     = new Account(
                cloudConfig.CloudName,
                cloudConfig.Key,
                cloudConfig.Secret
                );
            Cloudinary cloudinary = new Cloudinary(account);

            this.imgCloud = cloudinary;
        }
예제 #4
0
 public FollowersRepository(InstaPostContext context)
 {
     this.db = context;
 }
 public AdministratorsRepository(InstaPostContext context)
 {
     this.db = context;
 }
예제 #6
0
 public CommentsRepository(InstaPostContext context)
 {
     this.db = context;
 }
예제 #7
0
 public LikesRepository(InstaPostContext context, IPostsRepository postRepo)
 {
     this.db       = context;
     this.postRepo = postRepo;
 }
 public LocationsRepository(InstaPostContext context)
 {
     this.db = context;
 }
 public BookmarksRepository(InstaPostContext context)
 {
     this.db = context;
 }
예제 #10
0
 public TagsRepository(InstaPostContext context)
 {
     this.db = context;
 }