public TimeTrackerRepository(DevHubContext context, QueryMethod query, GuidMethod guid, IMapper mapper, MethodLibrary method)
 {
     _context = context;
     _query   = query;
     _guid    = guid;
     _mapper  = mapper;
     _method  = method;
 }
Exemple #2
0
 public AccountRepository(MethodLibrary method, SignInManager <ApplicationUser> manager, DevHubContext context, RoleManager <IdentityRole <string> > roleManager, IdentityContext identity, IMapper mapper)
 {
     _method      = method;
     _manager     = manager;
     _context     = context;
     _roleManager = roleManager;
     _identity    = identity;
     _mapper      = mapper;
 }
 public BookLogRepository(DevHubContext context, IMapper mapper, MethodLibrary method, GuidMethod guid, QueryMethod query, EmailMethod email)
 {
     _context = context;
     _mapper  = mapper;
     _method  = method;
     _guid    = guid;
     _query   = query;
     _email   = email;
 }
Exemple #4
0
        public PhotosRepository(DevHubContext context, IOptions <CloudinarySettings> cloudinaryConfig, IMapper mapper, IOptions <AppSettingsModel> options)
        {
            this._context          = context;
            this._cloudinaryConfig = cloudinaryConfig;
            this._options          = options;
            this._mapper           = mapper;

            Account acc = new Account(_cloudinaryConfig.Value.CloudName,
                                      _cloudinaryConfig.Value.ApiKey,
                                      _cloudinaryConfig.Value.ApiSecret);

            this._cloudinary = new Cloudinary(acc);
        }
Exemple #5
0
        protected override void Seed(DevHubContext context)
        {
            //  This method will be called after migrating to the latest version.

            //  You can use the DbSet<T>.AddOrUpdate() helper extension method
            //  to avoid creating duplicate seed data. E.g.
            //
            //    context.People.AddOrUpdate(
            //      p => p.FullName,
            //      new Person { FullName = "Andrew Peters" },
            //      new Person { FullName = "Brice Lambson" },
            //      new Person { FullName = "Rowan Miller" }
            //    );
            //

            CreateDataDefaultForCaterogies(context.Categories);
            CreateDataDefaultForCourses(context.Courses);
            CreateDataDefaultForVideos(context.Videos);
            CreateDataDefaultForComments(context.Comments);
        }
 public VideoRepository(DevHubContext context) : base(context)
 {
 }
 public EmailRecipientRepository(DevHubContext context, IMapper mapper)
 {
     this._context = context;
     this._mapper  = mapper;
 }
 public CourseRepository(DevHubContext context)
 {
     this.context = context;
 }
Exemple #9
0
 public TransactionRepository(DevHubContext context, IOptions <AppSettingsModel> options)
 {
     this._context = context;
     this._options = options;
 }
Exemple #10
0
 public GenericRepository(DevHubContext context)
 {
     this.context = context;
     dbset        = context.Set <T>();
 }
 public BookLogRepository(IOptions <AppSettingsModel> options, DevHubContext context)
 {
     this._options = options;
     this._context = context;
 }
Exemple #12
0
 public ProductRepository(IOptions <AppSettingsModel> options, IMapper mapper, DevHubContext context)
 {
     this._options = options;
     this._mapper  = mapper;
     this._context = context;
 }
Exemple #13
0
 public QueryMethod(DevHubContext context)
 {
     _context = context;
 }
Exemple #14
0
 public GuidMethod(DevHubContext context)
 {
     _context = context;
 }
Exemple #15
0
 public CategoryRepository(DevHubContext context)
 {
     this.context = context;
 }
Exemple #16
0
 public CommentRepository(DevHubContext context) : base(context)
 {
 }
 public AmenitiesRepository(IOptions <AppSettingsModel> options, DevHubContext context, IMapper mapper)
 {
     this._options = options;
     this._context = context;
     this._mapper  = mapper;
 }
Exemple #18
0
 public ClientRepository(DevHubContext context, Validators validate, QueryMethod query)
 {
     _context  = context;
     _validate = validate;
     _query    = query;
 }
 public AuthRepository(DevHubContext context, IMapper mapper)
 {
     this._context = context;
     this._mapper  = mapper;
 }