Exemplo n.º 1
0
 public PublisherRepository(IDatabaseMiddleware db, IUserRepository userRepository)
 {
     _db = db;
     _db.SetDatabase(ConfigurationManager.ConnectionStrings["myConnectionString"].ConnectionString);
     _userRepository = userRepository;
 }
Exemplo n.º 2
0
 public UserRepository(IDatabaseMiddleware db)
 {
     _db = db;
     _db.SetDatabase(ConfigurationManager.ConnectionStrings["myConnectionString"].ConnectionString);
 }