Example #1
0
        public static void Main(string[] args)
        {
            var dbContextFactory = new ApplicationDbContextFactory();

            var dbContext = dbContextFactory.Create(new DbContextFactoryOptions());

            var companiesRepositories = new ArtisteEntityFrameworkRepository <Entity>(dbContext);
        }
Example #2
0
        public TableGroupTest()
        {
            _dbContextFactory = new ApplicationDbContextFactory();

            var dbContext = _dbContextFactory.Create();

            ClearAllTables(dbContext);
            _groupeRepository = new ArtisteEntityFrameworkRepository <Groupe>(dbContext);
        }