Example #1
0
        public CourseRepository()
        {
            //TODO: Antipattern
            var factory = new L2lDbContextFactory();

            db = factory.CreateDbContext(new string[] {});
        }
Example #2
0
 public CourseRepository(L2lDbContext db)
 {
     this.db = db
               ?? throw new ArgumentNullException(nameof(db));
 }
Example #3
0
        public CourseRepository()
        {
            var factory = new L2lDbContextFactory();

            db = factory.CreateDbContext(new string[] {});
        }