/// <summary> /// Initializes a new instance of the <see cref="UnitOfWork"/> class. /// </summary> /// <param name="contextParam">The context parameter.</param> /// <param name="organizationsListRepositoryParam">The organizations list repository parameter.</param> public UnitOfWork(FundTrackContext contextParam, IOrganizationsForFilteringRepository organizationsListRepositoryParam, IUserResporitory userListRepositoryParam, IEventManagementRepository eventRepository, IOrganizationRepository organizationRepository, IMembershipRepository membershipRepositoryParam, IRepository <Address> addressRepository, IRepository <OrgAddress> orgAddressRepository, IRepository <BankAccount> bankAccountRepository, IRequestedItemRepository requestedItemRepository, IRepository <Role> roleRepository, IRepository <EventImage> eventImageRepositoryParam, IRepository <OfferedItem> offeredItemRepository, IStatusRepository statusRepository, IUserResponseRepository userResponseRepository, IGoodsCategoryRepository goodsCategoryRepository, IRequestedItemImageRepository requestedItemImageRepository, IGoodsTypeRepository goodsTypeRepository, IOfferImagesRepository offeredItemImageRepository, IBankImportDetailRepository bankImportDetailRepository, IOrganizationAccountRepository organizationAccountRepository, IRepository <Currency> currencyRepository, ITargetRepository targetRepository, IDonationRepository donationRepository, IFinOpRepository finOpRepository, IPhoneRepository phoneRepository, IRepository <FinOpImage> finOpImagesRepository ) { this._context = contextParam; this._organizationsListRepository = organizationsListRepositoryParam; this._usersListRepository = userListRepositoryParam; this._membershipRepository = membershipRepositoryParam; _eventRepository = eventRepository; _organizationRepository = organizationRepository; _addressRepository = addressRepository; _orgAddressRepository = orgAddressRepository; _bankAccountRepository = bankAccountRepository; _roleRepository = roleRepository; _eventImageRepository = eventImageRepositoryParam; _offeredItemRepository = offeredItemRepository; _goodsCategoryRepository = goodsCategoryRepository; _userResponseRepository = userResponseRepository; _requestedItemRepository = requestedItemRepository; _statusRepository = statusRepository; _requestedItemImageRepository = requestedItemImageRepository; _goodsTypeRepository = goodsTypeRepository; _offeredItemImageRepository = offeredItemImageRepository; _bankImportDetailRepository = bankImportDetailRepository; _organizationAccountRepository = organizationAccountRepository; _currencyRepository = currencyRepository; _targetRepository = targetRepository; _donationRepository = donationRepository; _finOpRepository = finOpRepository; this._phoneRepository = phoneRepository; _finOpImagesRepository = finOpImagesRepository; }
/// <summary> /// Initializes a new instance of the <see cref="RequestedItem"/> class. /// </summary> /// <param name="dbContext"></param> public RequestedItemRepository(FundTrackContext dbContext) { this._dbContext = dbContext; }
/// <summary> /// Creates new instance of role repository /// </summary> /// <param name="context">Db context to create new instance of role repository</param> public RoleRepository(FundTrackContext context) { _context = context; }
/// <summary> /// Initialize new instance if StatusRepository class /// </summary> /// <param name="context"></param> public FinOpRepository(FundTrackContext context) { this._context = context; }
/// <summary> /// Initializes a new instance of the <see cref="PhoneRepository"/> class. /// </summary> /// <param name="context">The context.</param> public PhoneRepository(FundTrackContext context) { this.context = context; }
/// <summary> /// Creates new instance of bank account repository /// </summary> /// <param name="context">Db context</param> public BankAccountRepository(FundTrackContext context) { _context = context; }
/// <summary> /// Initializes a new instance of the <see cref="MembershipRepository"/> class. /// </summary> /// <param name="context">The context.</param> public MembershipRepository(FundTrackContext context) { this.context = context; }
/// <summary> /// Initializes a new instance of the <see cref="OrganizationsForFilteringRepository"/> class. /// </summary> /// <param name="contextParam">The context parameter.</param> public OrganizationsForFilteringRepository(FundTrackContext contextParam) { this._context = contextParam; }
/// <summary> /// Initializes a new instance of the <see cref="BankImportDetailRepository"/> class. /// </summary> /// <param name="context">The context.</param> public BankImportDetailRepository(FundTrackContext context) { this._context = context; }
/// <summary> /// Initializes a new instance of the <see cref="EventImageRepository"/> class. /// </summary> /// <param name="contextParam">The context parameter.</param> public CurrencyRepository(FundTrackContext contextParam) { this._context = contextParam; }
public EFGenericRepository(FundTrackContext context) { _context = context; _dbSet = context.Set <TEntity>(); }
/// <summary> /// Initializes a new instance of the <see cref="EventImageRepository"/> class. /// </summary> /// <param name="contextParam">The context parameter.</param> public EventImageRepository(FundTrackContext contextParam) { this._context = contextParam; }
public OfferedItemRepository(FundTrackContext context) { _context = context; }
public OfferImagesRepository(FundTrackContext context) { _context = context; }
public GoodsCategoryRepository(FundTrackContext context) { _context = context; }
/// <summary> /// Initialize new instance of RequestedItemRepository class /// </summary> /// <param name="context"></param> public RequestedItemImageRepository(FundTrackContext context) { this._context = context; }
/// <summary> /// Initializes a new instance of the <see cref="UserResponseRepository"/> class. /// </summary> /// <param name="context">The context.</param> public UserResponseRepository(FundTrackContext context) { this._context = context; }
/// <summary> /// Initializes a new instance of the <see cref="BalanceRepository"/> class. /// </summary> /// <param name="contextParam">The context parameter.</param> public BalanceRepository(FundTrackContext contextParam) { this._context = contextParam; }
/// <summary> /// Creates new instance of address repository /// </summary> /// <param name="context">Db context to create new instance of address repository</param> public AddressRepository(FundTrackContext context) { _context = context; }
public ImportIntervalRepository(FundTrackContext context) { _context = context; }
public BankRepositoty(FundTrackContext context) { _context = context; }
/// <summary> /// Initializes a new instance of the <see cref="EventRepsitory"/> class. /// </summary> /// <param name="context">The context.</param> public EventRepository(FundTrackContext context) { _context = context; }
/// <summary> /// Initializes a new instance of the <see cref="TargetRepository"/> class. /// </summary> /// <param name="context">The context.</param> public TargetRepository(FundTrackContext context) { _context = context; }
/// <summary> /// Initializes a new instance of the <see cref="OrganizationRepository"/> class. /// </summary> /// <param name="context">The context.</param> public OrganizationRepository(FundTrackContext context) { _context = context; }
public GoodsTypeRepository(FundTrackContext context) { _context = context; }
/// <summary> /// Creates instance of DonateRepository /// </summary> /// <param name="context">Context to create instance</param> public DonationRepository(FundTrackContext context) { _context = context; }
/// <summary> /// Initialize new instance if StatusRepository class /// </summary> /// <param name="context"></param> public StatusRepository(FundTrackContext context) { this._context = context; }