本文整理汇总了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;
}
示例2: MembershipService
public MembershipService(IEntityRepository<User> userRepository, IEntityRepository<Role> roleRepository, IEntityRepository<UserInRole> userInRoleRepository, ICryptoService cryptoService)
{
_userRepository = userRepository;
_roleRepository = roleRepository;
_userInRoleRepository = userInRoleRepository;
_cryptoService = cryptoService;
}
示例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;
}
示例4: AccountEntityOperationLogic
public AccountEntityOperationLogic(INotificationService notificationService, ITemplateService templateService, IEntityRepository repository, ISecurityService securityService)
{
_notificationService = notificationService;
_templateService = templateService;
_repository = repository;
_securityService = securityService;
}
示例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);
}
示例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));
}
示例7: CourseController
public CourseController(Lazy<UserManager<ApplicationUser>> userManager, IEntityRepository entityRepository, ICourseService courseService, Lazy<ICertificateService> certificateService)
: base(userManager)
{
_entityRepository = entityRepository;
_courseService = courseService;
_certificateService = certificateService;
}
示例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;
}
示例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;
}
示例10: PackageSource
public PackageSource(
IEntityRepository<Package> packageRepo,
IEntityRepository<CuratedPackage> curatedPackageRepo)
{
_packageSet = packageRepo;
_curatedPackageRepository = curatedPackageRepo;
}
示例11: CuratedFeedService
public CuratedFeedService(
IEntityRepository<CuratedFeed> curatedFeedRepository,
IEntityRepository<CuratedPackage> curatedPackageRepository)
{
CuratedFeedRepository = curatedFeedRepository;
CuratedPackageRepository = curatedPackageRepository;
}
示例12: AdminControllerTestInit
public void AdminControllerTestInit()
{
RestaurantRepository = Substitute.For<IEntityRepository<Restaurant>>();
ReviewRepository = Substitute.For<IEntityRepository<Review>>();
RestaurantController = new RestaurantController(RestaurantRepository);
}
示例13: UserService
public UserService(
IAppConfiguration config,
IEntityRepository<User> userRepository) : this()
{
Config = config;
UserRepository = userRepository;
}
示例14: ModeratorLevelRepository
public ModeratorLevelRepository(
IEntityRepository<IEndowmentEntity> entityRepository,
IGuidManager guidManager)
{
_entityRepository = entityRepository;
_guidManager = guidManager;
}
示例15: ManageCourseController
public ManageCourseController(ICourseService courseService, IEntityRepository entityRepository, IEmailGenerationService emailGenerationService, IMailService mailService)
{
_courseService = courseService;
_entityRepository = entityRepository;
_emailGenerationService = emailGenerationService;
_mailService = mailService;
}