当前位置: 首页>>代码示例>>C#>>正文


C# IEntityRepository类代码示例

本文整理汇总了C#中IEntityRepository的典型用法代码示例。如果您正苦于以下问题:C# IEntityRepository类的具体用法?C# IEntityRepository怎么用?C# IEntityRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IEntityRepository类属于命名空间,在下文中一共展示了IEntityRepository类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PackageNamingConflictValidator

 public PackageNamingConflictValidator(
     IEntityRepository<PackageRegistration> packageRegistrationRepository,
     IEntityRepository<Package> packageRepository)
 {
     _packageRegistrationRepository = packageRegistrationRepository;
     _packageRepository = packageRepository;
 }
开发者ID:ZhiYuanHuang,项目名称:NuGetGallery,代码行数:7,代码来源:PackageNamingConflictValidator.cs

示例2: MembershipService

 public MembershipService(IEntityRepository<User> userRepository, IEntityRepository<Role> roleRepository, IEntityRepository<UserInRole> userInRoleRepository, ICryptoService cryptoService)
 {
     _userRepository = userRepository;
     _roleRepository = roleRepository;
     _userInRoleRepository = userInRoleRepository;
     _cryptoService = cryptoService;
 }
开发者ID:dotnext24,项目名称:PingYourPackage,代码行数:7,代码来源:MembershipService.cs

示例3: JsonApiController

 public JsonApiController(IPackageService packageSvc, IUserService userSvc, IEntityRepository<PackageOwnerRequest> packageOwnerRequestRepository, IMessageService messageService)
 {
     this.packageSvc = packageSvc;
     this.userSvc = userSvc;
     this.packageOwnerRequestRepository = packageOwnerRequestRepository;
     this.messageSvc = messageService;
 }
开发者ID:N198,项目名称:NugetGallery21-DeleteMe,代码行数:7,代码来源:JsonApiController.cs

示例4: AccountEntityOperationLogic

 public AccountEntityOperationLogic(INotificationService notificationService, ITemplateService templateService, IEntityRepository repository, ISecurityService securityService)
 {
     _notificationService = notificationService;
     _templateService = templateService;
     _repository = repository;
     _securityService = securityService;
 }
开发者ID:kvuchkov,项目名称:nbulib,代码行数:7,代码来源:AccountEntityOperationLogic.cs

示例5: ReviewControllerTestInit

 public void ReviewControllerTestInit()
 {
     _reviewRepository = Substitute.For<IEntityRepository<Review>>();
     _restaurantRepository = Substitute.For<IEntityRepository<Restaurant>>();
     _httpContextService = Substitute.For<IHttpContextService>();
     _reviewController = new ReviewController(_reviewRepository, _restaurantRepository, _httpContextService);
 }
开发者ID:anthony-lavallee,项目名称:miam,代码行数:7,代码来源:ReviewControllerTests.cs

示例6: EntityListPageViewModel

  public EntityListPageViewModel(IEntityRepository entityRepository, INavigationService navService, IEventAggregator eventAggregator) {
      _entityRepository = entityRepository;
      _navService = navService;
      _eventAggregator = eventAggregator;
      NavCommand = new DelegateCommand<Entity>(OnNavCommand);
      EntityDetailNavCommand = new DelegateCommand(() => _navService.Navigate("EntityDetail", 0));
 }
开发者ID:ronlemire2,项目名称:PrismRT-CodeGen,代码行数:7,代码来源:EntityListPageViewModel.cs

示例7: CourseController

 public CourseController(Lazy<UserManager<ApplicationUser>> userManager, IEntityRepository entityRepository, ICourseService courseService, Lazy<ICertificateService> certificateService)
     : base(userManager)
 {
     _entityRepository = entityRepository;
     _courseService = courseService;
     _certificateService = certificateService;
 }
开发者ID:GIEMedia,项目名称:PCT,代码行数:7,代码来源:CourseController.cs

示例8: PostController

 /// <summary>
 /// Initializes a new instance of the <see cref="PostController" /> class.
 /// </summary>
 /// <param name="postRepository">The post repository.</param>
 /// <param name="topicRepository">The topic repository.</param>
 /// <param name="userRepository">The user repository.</param>
 public PostController(IEntityRepository<Post, int> postRepository, 
     IEntityRepository<Topic, int> topicRepository, IEntityRepository<User, int> userRepository)
 {
     this.postRepository = postRepository;
     this.topicRepository = topicRepository;
     this.userRepository = userRepository;
 }
开发者ID:shoff,项目名称:zanshin,代码行数:13,代码来源:PostController.cs

示例9: ForumService

 /// <summary>Initializes a new instance of the <see cref="ForumService" /> class.</summary>
 /// <param name="forumRepository">The forum repository.</param>
 /// <param name="topicRepository">The topic repository.</param>
 /// <param name="postRepository">The post repository.</param>
 public ForumService(IEntityRepository<Forum, int> forumRepository, 
     IEntityRepository<Topic, int> topicRepository, IEntityRepository<Post, int> postRepository)
 {
     this.forumRepository = forumRepository;
     this.topicRepository = topicRepository;
     this.postRepository = postRepository;
 }
开发者ID:shoff,项目名称:zanshin,代码行数:11,代码来源:ForumService.cs

示例10: PackageSource

 public PackageSource(
     IEntityRepository<Package> packageRepo,
     IEntityRepository<CuratedPackage> curatedPackageRepo)
 {
     _packageSet = packageRepo;
     _curatedPackageRepository = curatedPackageRepo;
 }
开发者ID:kmsheehan,项目名称:NuGetGallery,代码行数:7,代码来源:PackageSource.cs

示例11: CuratedFeedService

 public CuratedFeedService(
     IEntityRepository<CuratedFeed> curatedFeedRepository,
     IEntityRepository<CuratedPackage> curatedPackageRepository)
 {
     CuratedFeedRepository = curatedFeedRepository;
     CuratedPackageRepository = curatedPackageRepository;
 }
开发者ID:JetBrains,项目名称:ReSharperGallery,代码行数:7,代码来源:CuratedFeedService.cs

示例12: AdminControllerTestInit

        public void AdminControllerTestInit()
        {
            RestaurantRepository = Substitute.For<IEntityRepository<Restaurant>>();
            ReviewRepository = Substitute.For<IEntityRepository<Review>>();

            RestaurantController = new RestaurantController(RestaurantRepository);
        }
开发者ID:raphaeldore,项目名称:miam,代码行数:7,代码来源:BaseRestaurantControllerTests.cs

示例13: UserService

 public UserService(
     IAppConfiguration config,
     IEntityRepository<User> userRepository) : this()
 {
     Config = config;
     UserRepository = userRepository;
 }
开发者ID:KuduApps,项目名称:NuGetGallery,代码行数:7,代码来源:UserService.cs

示例14: ModeratorLevelRepository

 public ModeratorLevelRepository(
     IEntityRepository<IEndowmentEntity> entityRepository,
     IGuidManager guidManager)
 {
     _entityRepository = entityRepository;
     _guidManager = guidManager;
 }
开发者ID:Apostol59,项目名称:Endowment,代码行数:7,代码来源:ModeratorLevelRepository.cs

示例15: ManageCourseController

 public ManageCourseController(ICourseService courseService, IEntityRepository entityRepository, IEmailGenerationService emailGenerationService, IMailService mailService)
 {
     _courseService = courseService;
     _entityRepository = entityRepository;
     _emailGenerationService = emailGenerationService;
     _mailService = mailService;
 }
开发者ID:GIEMedia,项目名称:PCT,代码行数:7,代码来源:CourseController.cs


注:本文中的IEntityRepository类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。