예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestedItem"/> class.
 /// </summary>
 /// <param name="dbContext"></param>
 public RequestedItemRepository(FundTrackContext dbContext)
 {
     this._dbContext = dbContext;
 }
예제 #3
0
 /// <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;
 }
예제 #4
0
 /// <summary>
 /// Initialize new instance if StatusRepository class
 /// </summary>
 /// <param name="context"></param>
 public FinOpRepository(FundTrackContext context)
 {
     this._context = context;
 }
예제 #5
0
 /// <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;
 }
예제 #6
0
 /// <summary>
 /// Creates new instance of bank account repository
 /// </summary>
 /// <param name="context">Db context</param>
 public BankAccountRepository(FundTrackContext context)
 {
     _context = context;
 }
예제 #7
0
 /// <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;
 }
예제 #9
0
 /// <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;
 }
예제 #10
0
 /// <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;
 }
예제 #11
0
 public EFGenericRepository(FundTrackContext context)
 {
     _context = context;
     _dbSet   = context.Set <TEntity>();
 }
예제 #12
0
 /// <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;
 }
예제 #13
0
 public OfferedItemRepository(FundTrackContext context)
 {
     _context = context;
 }
예제 #14
0
 public OfferImagesRepository(FundTrackContext context)
 {
     _context = context;
 }
예제 #15
0
 public GoodsCategoryRepository(FundTrackContext context)
 {
     _context = context;
 }
예제 #16
0
 /// <summary>
 /// Initialize new instance of RequestedItemRepository class
 /// </summary>
 /// <param name="context"></param>
 public RequestedItemImageRepository(FundTrackContext context)
 {
     this._context = context;
 }
예제 #17
0
 /// <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;
 }
예제 #18
0
 /// <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;
 }
예제 #19
0
 /// <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;
 }
예제 #20
0
 public ImportIntervalRepository(FundTrackContext context)
 {
     _context = context;
 }
예제 #21
0
 public BankRepositoty(FundTrackContext context)
 {
     _context = context;
 }
예제 #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EventRepsitory"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public EventRepository(FundTrackContext context)
 {
     _context = context;
 }
예제 #23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TargetRepository"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public TargetRepository(FundTrackContext context)
 {
     _context = context;
 }
예제 #24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrganizationRepository"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public OrganizationRepository(FundTrackContext context)
 {
     _context = context;
 }
예제 #25
0
 public GoodsTypeRepository(FundTrackContext context)
 {
     _context = context;
 }
예제 #26
0
 /// <summary>
 /// Creates instance of DonateRepository
 /// </summary>
 /// <param name="context">Context to create instance</param>
 public DonationRepository(FundTrackContext context)
 {
     _context = context;
 }
예제 #27
0
 /// <summary>
 /// Initialize new instance if StatusRepository class
 /// </summary>
 /// <param name="context"></param>
 public StatusRepository(FundTrackContext context)
 {
     this._context = context;
 }