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> >(); }
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; }
public TopicRepository(IUpdateDB <Topic> alter) { Alter = alter; }
public PublicationRepository(IUpdateDB<Publication> alter) { Alter = alter; }
public CommentRepository(IUpdateDB <Comment> alter) { Alter = alter; }
public UserRepository(IUpdateDB <User> alter) { Alter = alter; }
public UpdateNews(ModelNewsContext model, IUpdateDB update) { DbContext = model; this.update = update; }