本文整理汇总了C#中IEntitiesContext类的典型用法代码示例。如果您正苦于以下问题:C# IEntitiesContext类的具体用法?C# IEntitiesContext怎么用?C# IEntitiesContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IEntitiesContext类属于命名空间,在下文中一共展示了IEntitiesContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ApiController
public ApiController(
IEntitiesContext entitiesContext,
IPackageService packageService,
IPackageFileService packageFileService,
IUserService userService,
INuGetExeDownloaderService nugetExeDownloaderService,
IContentService contentService,
IIndexingService indexingService,
ISearchService searchService,
IAutomaticallyCuratePackageCommand autoCuratePackage,
IStatusService statusService,
IAppConfiguration config)
{
EntitiesContext = entitiesContext;
PackageService = packageService;
PackageFileService = packageFileService;
UserService = userService;
NugetExeDownloaderService = nugetExeDownloaderService;
ContentService = contentService;
StatisticsService = null;
IndexingService = indexingService;
SearchService = searchService;
AutoCuratePackage = autoCuratePackage;
StatusService = statusService;
_config = config;
}
示例2: EditPackageService
public EditPackageService(
IEntitiesContext entitiesContext,
IPackageNamingConflictValidator packageNamingConflictValidator)
{
EntitiesContext = entitiesContext;
PackageNamingConflictValidator = packageNamingConflictValidator;
}
示例3: PackagesController
public PackagesController(
IPackageService packageService,
IUploadFileService uploadFileService,
IMessageService messageService,
ISearchService searchService,
IAutomaticallyCuratePackageCommand autoCuratedPackageCmd,
IPackageFileService packageFileService,
IEntitiesContext entitiesContext,
IAppConfiguration config,
IIndexingService indexingService,
ICacheService cacheService,
EditPackageService editPackageService,
IPackageDeleteService packageDeleteService,
ISupportRequestService supportRequestService,
AuditingService auditingService)
{
_packageService = packageService;
_uploadFileService = uploadFileService;
_messageService = messageService;
_searchService = searchService;
_autoCuratedPackageCmd = autoCuratedPackageCmd;
_packageFileService = packageFileService;
_entitiesContext = entitiesContext;
_config = config;
_indexingService = indexingService;
_cacheService = cacheService;
_editPackageService = editPackageService;
_packageDeleteService = packageDeleteService;
_supportRequestService = supportRequestService;
_auditingService = auditingService;
}
示例4: StatusService
public StatusService(
IEntitiesContext entities,
IFileStorageService fileStorageService)
{
_entities = entities;
_fileStorageService = fileStorageService;
}
示例5: PackagesController
public PackagesController(
IPackageService packageService,
IUploadFileService uploadFileService,
IUserService userService,
IMessageService messageService,
ISearchService searchService,
IAutomaticallyCuratePackageCommand autoCuratedPackageCmd,
INuGetExeDownloaderService nugetExeDownloaderService,
IPackageFileService packageFileService,
IEntitiesContext entitiesContext,
IAppConfiguration config,
IIndexingService indexingService,
ICacheService cacheService)
{
_packageService = packageService;
_uploadFileService = uploadFileService;
_userService = userService;
_messageService = messageService;
_searchService = searchService;
_autoCuratedPackageCmd = autoCuratedPackageCmd;
_nugetExeDownloaderService = nugetExeDownloaderService;
_packageFileService = packageFileService;
_entitiesContext = entitiesContext;
_config = config;
_indexingService = indexingService;
_cacheService = cacheService;
}
示例6: CuratedPackagesController
public CuratedPackagesController(
ICuratedFeedService curatedFeedService,
IEntitiesContext entitiesContext)
{
this.CuratedFeedService = curatedFeedService;
this.EntitiesContext = entitiesContext;
}
示例7: UnitOfWork
public UnitOfWork(
IEntitiesContext context
)
{
if (context == null)
throw new ArgumentNullException("context");
_context = context;
}
示例8: CuratedPackagesController
public CuratedPackagesController(
ICuratedFeedService curatedFeedService,
IEntitiesContext entitiesContext,
IAutomaticallyCuratePackageCommand autoCuratedPackageCmd)
{
this.CuratedFeedService = curatedFeedService;
this.EntitiesContext = entitiesContext;
this.AutoCuratedPackageCmd = autoCuratedPackageCmd;
}
示例9: StatusService
public StatusService(
IEntitiesContext entities,
IFileStorageService fileStorageService,
IAppConfiguration config)
{
_entities = entities;
_fileStorageService = fileStorageService;
_config = config;
}
示例10: ReflowPackageService
public ReflowPackageService(
IEntitiesContext entitiesContext,
IPackageService packageService,
IPackageFileService packageFileService)
{
_entitiesContext = entitiesContext;
_packageService = packageService;
_packageFileService = packageFileService;
}
示例11: AuthenticationService
public AuthenticationService(
IEntitiesContext entities, IAppConfiguration config, IDiagnosticsService diagnostics,
AuditingService auditing, IEnumerable<Authenticator> providers, ICredentialBuilder credentialBuilder,
ICredentialValidator credentialValidator, IDateTimeProvider dateTimeProvider)
{
if (entities == null)
{
throw new ArgumentNullException(nameof(entities));
}
if (config == null)
{
throw new ArgumentNullException(nameof(config));
}
if (diagnostics == null)
{
throw new ArgumentNullException(nameof(diagnostics));
}
if (auditing == null)
{
throw new ArgumentNullException(nameof(auditing));
}
if (providers == null)
{
throw new ArgumentNullException(nameof(providers));
}
if (credentialBuilder == null)
{
throw new ArgumentNullException(nameof(credentialBuilder));
}
if (credentialValidator == null)
{
throw new ArgumentNullException(nameof(credentialValidator));
}
if (dateTimeProvider == null)
{
throw new ArgumentNullException(nameof(dateTimeProvider));
}
InitCredentialFormatters();
Entities = entities;
_config = config;
Auditing = auditing;
_trace = diagnostics.SafeGetSource("AuthenticationService");
Authenticators = providers.ToDictionary(p => p.Name, StringComparer.OrdinalIgnoreCase);
_credentialBuilder = credentialBuilder;
_credentialValidator = credentialValidator;
_dateTimeProvider = dateTimeProvider;
}
示例12: ODataV2CuratedFeedController
public ODataV2CuratedFeedController(
IEntitiesContext entities,
IGalleryConfigurationService configurationService,
ISearchService searchService,
ICuratedFeedService curatedFeedService)
: base(configurationService)
{
_entities = entities;
_configurationService = configurationService;
_searchService = searchService;
_curatedFeedService = curatedFeedService;
}
示例13: ApiController
public ApiController(
IEntitiesContext entitiesContext,
IPackageService packageService,
IPackageFileService packageFileService,
IUserService userService,
INuGetExeDownloaderService nugetExeDownloaderService,
IContentService contentService,
IIndexingService indexingService,
IStatisticsService statisticsService)
: this(entitiesContext, packageService, packageFileService, userService, nugetExeDownloaderService, contentService, indexingService)
{
StatisticsService = statisticsService;
}
示例14: HMUnitOfWork
public HMUnitOfWork(IEntitiesContext dbContext)
{
_dbContext = dbContext;
_employeeRepository = new EntityRepository<Employee>(dbContext);
_holidayInformationRepository = new EntityRepository<HolidayInformation>(dbContext);
_holidayPeriodRepository = new EntityRepository<HolidayPeriod>(dbContext);
_legalHolidayRepository = new EntityRepository<LegalHoliday>(dbContext);
_purposeRepository = new EntityRepository<Purpose>(dbContext);
_requestRepository = new EntityRepository<Request>(dbContext);
_roleRepository = new EntityRepository<Role>(dbContext);
_teamRepository = new EntityRepository<Team>(dbContext);
}
示例15: ProjectsController
public ProjectsController(
IProjectService projectService,
IMessageService messageService,
IEntitiesContext entitiesContext,
IAppConfiguration config,
ICacheService cacheService)
{
_projectService = projectService;
_messageService = messageService;
_entitiesContext = entitiesContext;
_config = config;
_cacheService = cacheService;
}