Esempio n. 1
0
 public BaseRepository(DotnetomaniakContext context)
 {
     _context = context;
 }
Esempio n. 2
0
 protected override void AwardBadges(DotnetomaniakContext context)
 {
     context._1kPoints();
 }
Esempio n. 3
0
 protected override void AwardBadges(DotnetomaniakContext context)
 {
     context.Facebook();
 }
Esempio n. 4
0
 public KnownSourceRepository(DotnetomaniakContext context) : base(context)
 {
     _context = context;
 }
 public MarkAsSpamRepository(DotnetomaniakContext context) : base(context)
 {
     _context = context;
 }
Esempio n. 6
0
 protected override void AwardBadges(DotnetomaniakContext context)
 {
     context.Commenter();
 }
Esempio n. 7
0
 protected abstract void AwardBadges(DotnetomaniakContext context);
 protected override void AwardBadges(DotnetomaniakContext context)
 {
     context.StoryAdder();
 }
Esempio n. 9
0
 public UnitOfWork(DotnetomaniakContext context)
 {
     _context = context;
 }
Esempio n. 10
0
 public VoteRepository(DotnetomaniakContext context, ICache cache) : base(context)
 {
     _context = context;
     _cache   = cache;
 }
Esempio n. 11
0
 protected override void AwardBadges(DotnetomaniakContext context)
 {
     context.Globetrotter();
 }
Esempio n. 12
0
 protected override void AwardBadges(DotnetomaniakContext context)
 {
     context.EarlyBird();
 }
 public CommentSubscribtionRepository(DotnetomaniakContext context) : base(context)
 {
     _context = context;
 }
Esempio n. 14
0
 protected override void AwardBadges(DotnetomaniakContext context)
 {
     //awards a badge if user visits site between 2-3 AM
     context.NightOwl();
 }
Esempio n. 15
0
 public StoryViewRepository(DotnetomaniakContext context) : base(context)
 {
     _context = context;
 }
Esempio n. 16
0
 protected override void AwardBadges(DotnetomaniakContext context)
 {
     context.GreatStory();
 }
 public RecommendationRepository(DotnetomaniakContext context) : base(context)
 {
     _context = context;
 }
Esempio n. 18
0
 public UserRepository(DotnetomaniakContext context) : base(context)
 {
     _context = context;
 }
Esempio n. 19
0
 public AchievementRepository(DotnetomaniakContext context) : base(context)
 {
     _context = context;
 }
 public CategoryRepository(DotnetomaniakContext context) : base(context)
 {
     _context = context;
 }
 public CommingEventRepository(DotnetomaniakContext context) : base(context)
 {
     _context = context;
 }
Esempio n. 22
0
 public StoryRepository(DotnetomaniakContext context, IConfigurationSettings settings) : base(context)
 {
     _context  = context;
     _settings = settings;
 }
Esempio n. 23
0
        private void InitializeDatabase()
        {
            var context = new DotnetomaniakContext(new ConfigurationManagerWrapper());

            context.Database.EnsureCreated();
        }