예제 #1
0
 public Repository(TDbContext dbContext)
 {
     DbContextService = new DbContextSessionInternal <TDbContext>(dbContext);
 }
예제 #2
0
        public Repository(string connectionString)
        {
            var context = (TDbContext)Activator.CreateInstance(typeof(TDbContext), connectionString);

            DbContextService = new DbContextSessionInternal <TDbContext>(context);
        }