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

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

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