Пример #1
0
        public TopicRepository()
        {
            ConfigInjection = new ConfigAutofacInfrastructure();

            Register = ConfigInjection.Container.Resolve <ICreateDB <Topic> >();
            Remove   = ConfigInjection.Container.Resolve <IDeleteDB <Topic> >();
            Get      = ConfigInjection.Container.Resolve <IGetDB <Topic> >();
            Alter    = ConfigInjection.Container.Resolve <IUpdateDB <Topic> >();
        }
Пример #2
0
 public UsuarioRepository(
     IGetUserByLogin getUserByLogin,
     IGetUserByEmail getUserByEmail,
     ICreateUser createUser,
     INotification notification,
     IUpdateToken updateToken,
     IRecreateUser recreateUser,
     IUpdateDB updateDb,
     ILdapRepository ldapRepository
     )
 {
     this.getUserByLogin = getUserByLogin;
     this.getUserByEmail = getUserByEmail;
     this.createUser     = createUser;
     this.notification   = notification;
     this.updateToken    = updateToken;
     this.recreateUser   = recreateUser;
     this.updateDb       = updateDb;
     this.ldapRepository = ldapRepository;
 }
Пример #3
0
 public TopicRepository(IUpdateDB <Topic> alter)
 {
     Alter = alter;
 }
Пример #4
0
 public PublicationRepository(IUpdateDB<Publication> alter)
 {
     Alter = alter;
 }
Пример #5
0
 public CommentRepository(IUpdateDB <Comment> alter)
 {
     Alter = alter;
 }
Пример #6
0
 public UserRepository(IUpdateDB <User> alter)
 {
     Alter = alter;
 }
Пример #7
0
        public UpdateNews(ModelNewsContext model, IUpdateDB update)
        {
            DbContext = model;

            this.update = update;
        }