public UnitOfWork(EasyFindPropertiesEntities dbCtx) { _dbCtx = dbCtx; PropertyType = new PropertyTypeRepository(_dbCtx); AdPriority = new AdPriorityRepository(_dbCtx); AdType = new AdTypeRepository(_dbCtx); PropertyCategory = new PropertyCategoryRepository(_dbCtx); PropertyCondition = new PropertyConditionRepository(_dbCtx); PropertyImage = new PropertyImageRepository(_dbCtx); PropertyPurpose = new PropertyPurposeRepository(_dbCtx); PropertyRating = new PropertyRatingRepository(_dbCtx); Property = new PropertyRepository(_dbCtx); PropertyRequisition = new PropertyRequisitionRepository(_dbCtx); SubscriptionType = new SubscriptionTypeRepository(_dbCtx); Subscription = new SubscriptionRepository(_dbCtx); TagType = new TagTypeRepository(_dbCtx); Tennant = new TennantRepository(_dbCtx); Owner = new OwnerRepository(_dbCtx); Tags = new TagsRepository(_dbCtx); Message = new MessageRepository(_dbCtx); User = new UserRepository(_dbCtx); UserType = new UserTypeRepository(_dbCtx); UserTypeAssoc = new UserTypeAssocRepository(_dbCtx); MessageTrash = new MessageTrashRepository(_dbCtx); Meeting = new MeetingRepository(_dbCtx); MeetingMembers = new MeetingMembersRepository(_dbCtx); }
/// <summary> /// Contructor de la clase /// </summary> /// <param name="context">Contexto de base de datos</param> public UnitOfWorkSqlServerRepository(WeeloDbContext context) { this.context = context; Owner = new OwnerRepository(this.context); PropertyImage = new PropertyImageRepository(this.context); Property = new PropertyRepository(this.context); PropertyTrace = new PropertyTraceRepository(this.context); }