コード例 #1
0
ファイル: Facade.cs プロジェクト: Donblack/MovieShop
 public static ICrudRepository<Movie> GetMovieRepository()
 {
     if (movieRepo == null)
     {
         movieRepo = new MovieRepository();
     }
     return movieRepo;
 }
コード例 #2
0
ファイル: Facade.cs プロジェクト: Donblack/MovieShop
 public static ICrudRepository<Orders> GetOrderRepository()
 {
     if (orderRepo == null)
     {
         orderRepo = new OrderRepository();
     }
     return orderRepo;
 }
コード例 #3
0
ファイル: Facade.cs プロジェクト: Donblack/MovieShop
 public static ICrudRepository<Genres> GetGenreRepository()
 {
     if(genreRepo == null)
     {
         genreRepo = new GenreRepository();
     }
     return genreRepo;
 }
コード例 #4
0
ファイル: Facade.cs プロジェクト: Donblack/MovieShop
 public static IGenreSearch<Movie> GetGenreSearch()
 {
     if (movieRepo == null)
     {
         movieRepo = new MovieRepository();
     }
     return (IGenreSearch<Movie>)movieRepo;
 }
コード例 #5
0
ファイル: Facade.cs プロジェクト: Donblack/MovieShop
 public static ISearch<Customer> GetCustomerSearch()
 {
     if(customerRepo == null)
     {
         customerRepo = new CustomerRepository();
     }
     return (ISearch<Customer>)customerRepo;
 }
コード例 #6
0
ファイル: Facade.cs プロジェクト: Donblack/MovieShop
 public static ICrudRepository<Customer> GetCustomerRepository()
 {
     if (customerRepo == null)
     {
         customerRepo = new CustomerRepository();
     }
     return customerRepo;
 }
コード例 #7
0
 public MenuItemController(IMenuItemService menuItemService,
                             IMenuItemRepository menuItemRepository,
                             ICrudRepository<MenuItemType> menuItemTypeRepository,
     IUnitOfWork<MenuItemContext> menuItemUnitOfWork, ICurrentUser currentUser)
 {
     //db = new MenuItemContext();
     this._menuItemService = menuItemService;
     this._menuItemRepository = menuItemRepository;
     this._menuItemTypeRepository = menuItemTypeRepository;
     this._menuItemUnitOfWork=menuItemUnitOfWork;
     this._currentUser = currentUser;
 }
コード例 #8
0
        ICrudRepository<ProjectCategory> _projectCategoryRepository; //= new Repository<Project>(new SJiraContext());

        #endregion Fields

        #region Constructors

        public ProjectCategoryApiController(ICrudRepository<ProjectCategory> projectCategoryRepository)
        {
            try
            {
                _projectCategoryRepository = projectCategoryRepository;
            }
            catch (Exception)
            {

                throw;
            }
        }
コード例 #9
0
 public DashboardController(IMenuItemService menuItemService, IDashboardService dashboardService,
                             IMenuItemRepository menuItemRepository,
                             IDashboardRepository dashboardRepository,
     //IDashboardUserRepository dashboardUserRepository,
                             IApplicationUserRepository ApplicationUserRepository,
                             ICrudRepository<SharedWith> sharedWithRepository,
                             ICrudRepository<DashboardType> dashboardTypeRepository,
       IUnitOfWork<DashboardContext> dashboardUnitOfWork, ICurrentUser currentUser)
 {
     //db = new SJiraContext();
     this._menuItemService = menuItemService;
     this._menuItemRepository = menuItemRepository;
     this._dashboardRepository = dashboardRepository;
     this._dashboardService = dashboardService;
     //this._dashboardUserRepository = dashboardUserRepository;
     this._ApplicationUserRepository = ApplicationUserRepository;
     this._sharedWithRepository = sharedWithRepository;
     this._dashboardTypeRepository = dashboardTypeRepository;
     this._dashboardUnitOfWork = dashboardUnitOfWork;
     this._currentUser = currentUser;
 }
コード例 #10
0
 public ResolveTree(MockDbContext dbContext, ICrudRepository<MockEntity1> repo1, ICrudRepository<MockEntity2> repo2)
 {
     DbContext = dbContext;
     Repo1 = (DbCrudRepository<MockEntity1>)repo1;
     Repo2 = (DbCrudRepository<MockEntity2>)repo2;
 }
コード例 #11
0
 public ProductsService(ICrudRepository<Product> productsRepository)
 {
     this.productsRepository = productsRepository;
 }
 public CinemaLogic(IRepository repository, ICrudRepository<EntityBase> crudRepository)
 {
     _repository = repository;
     _crudRepository = crudRepository;
 }
コード例 #13
0
ファイル: SessionController.cs プロジェクト: Drake103/ewg
 public SessionController(IAuthenticator authenticator, ICrudRepository<IdentityUser> repository)
 {
     _authenticator = authenticator;
     _repository = repository;
 }
コード例 #14
0
 public CrudServiceBase(ICrudRepository <T> crudRepository)
 {
     _crudRepository = crudRepository;
 }
コード例 #15
0
 public CrudController(ICrudRepository <TEntity, TModel> repository, IMapper mapper, ILogger logger)
 {
     _repository = repository;
     _mapper     = mapper;
     _logger     = logger;
 }
コード例 #16
0
 public TaskService(WeekUtils weekUtils, ICrudRepository <int, Task> repository)
 {
     _weekUtils  = weekUtils;
     _repository = repository;
 }