本文整理汇总了C#中IEntitiesContext类的典型用法代码示例。如果您正苦于以下问题:C# IEntitiesContext类的具体用法?C# IEntitiesContext怎么用?C# IEntitiesContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IEntitiesContext类属于命名空间,在下文中一共展示了IEntitiesContext类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:whyleee,项目名称:RemoteFeedNuGetGallery,代码行数:26,代码来源:ApiController.cs
示例2: EditPackageService
public EditPackageService(
IEntitiesContext entitiesContext,
IPackageNamingConflictValidator packageNamingConflictValidator)
{
EntitiesContext = entitiesContext;
PackageNamingConflictValidator = packageNamingConflictValidator;
}
开发者ID:ZhiYuanHuang,项目名称:NuGetGallery,代码行数:7,代码来源:EditPackageService.cs
示例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;
}
开发者ID:rhysawilliams2010,项目名称:NuGetGallery,代码行数:31,代码来源:PackagesController.cs
示例4: StatusService
public StatusService(
IEntitiesContext entities,
IFileStorageService fileStorageService)
{
_entities = entities;
_fileStorageService = fileStorageService;
}
开发者ID:henrycomein,项目名称:NuGetGallery,代码行数:7,代码来源:StatusService.cs
示例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;
}
开发者ID:ryanhartley84332,项目名称:NuGetGallery,代码行数:27,代码来源:PackagesController.cs
示例6: CuratedPackagesController
public CuratedPackagesController(
ICuratedFeedService curatedFeedService,
IEntitiesContext entitiesContext)
{
this.CuratedFeedService = curatedFeedService;
this.EntitiesContext = entitiesContext;
}
开发者ID:henrycomein,项目名称:NuGetGallery,代码行数:7,代码来源:CuratedPackagesController.cs
示例7: UnitOfWork
public UnitOfWork(
IEntitiesContext context
)
{
if (context == null)
throw new ArgumentNullException("context");
_context = context;
}
开发者ID:premit,项目名称:Architecture,代码行数:8,代码来源:UnitOfWork.cs
示例8: CuratedPackagesController
public CuratedPackagesController(
ICuratedFeedService curatedFeedService,
IEntitiesContext entitiesContext,
IAutomaticallyCuratePackageCommand autoCuratedPackageCmd)
{
this.CuratedFeedService = curatedFeedService;
this.EntitiesContext = entitiesContext;
this.AutoCuratedPackageCmd = autoCuratedPackageCmd;
}
开发者ID:JetBrains,项目名称:ReSharperGallery,代码行数:9,代码来源:CuratedPackagesController.cs
示例9: StatusService
public StatusService(
IEntitiesContext entities,
IFileStorageService fileStorageService,
IAppConfiguration config)
{
_entities = entities;
_fileStorageService = fileStorageService;
_config = config;
}
开发者ID:ashuthinks,项目名称:webnuget,代码行数:9,代码来源:StatusService.cs
示例10: ReflowPackageService
public ReflowPackageService(
IEntitiesContext entitiesContext,
IPackageService packageService,
IPackageFileService packageFileService)
{
_entitiesContext = entitiesContext;
_packageService = packageService;
_packageFileService = packageFileService;
}
开发者ID:ZhiYuanHuang,项目名称:NuGetGallery,代码行数:9,代码来源:ReflowPackageService.cs
示例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;
}
开发者ID:NuGet,项目名称:NuGetGallery,代码行数:56,代码来源:AuthenticationService.cs
示例12: ODataV2CuratedFeedController
public ODataV2CuratedFeedController(
IEntitiesContext entities,
IGalleryConfigurationService configurationService,
ISearchService searchService,
ICuratedFeedService curatedFeedService)
: base(configurationService)
{
_entities = entities;
_configurationService = configurationService;
_searchService = searchService;
_curatedFeedService = curatedFeedService;
}
开发者ID:rhysawilliams2010,项目名称:NuGetGallery,代码行数:12,代码来源:ODataV2CuratedFeedController.cs
示例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;
}
开发者ID:nicholaspei,项目名称:NuGetGallery,代码行数:13,代码来源:ApiController.cs
示例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);
}
开发者ID:Zoliqa,项目名称:holidaymanagement,代码行数:13,代码来源:HMUnitOfWork.cs
示例15: ProjectsController
public ProjectsController(
IProjectService projectService,
IMessageService messageService,
IEntitiesContext entitiesContext,
IAppConfiguration config,
ICacheService cacheService)
{
_projectService = projectService;
_messageService = messageService;
_entitiesContext = entitiesContext;
_config = config;
_cacheService = cacheService;
}
开发者ID:jpsullivan,项目名称:OSSFinder,代码行数:13,代码来源:ProjectsController.cs
示例16: AuthenticationService
public AuthenticationService(IEntitiesContext entities, IAppConfiguration config, IDiagnosticsService diagnostics, AuditingService auditing, IEnumerable<Authenticator> providers)
{
_credentialFormatters = new Dictionary<string, Func<string, string>>(StringComparer.OrdinalIgnoreCase) {
{ "password", _ => Strings.CredentialType_Password },
{ "apikey", _ => Strings.CredentialType_ApiKey },
{ "external", FormatExternalCredentialType }
};
Entities = entities;
Config = config;
Auditing = auditing;
Trace = diagnostics.SafeGetSource("AuthenticationService");
Authenticators = providers.ToDictionary(p => p.Name, StringComparer.OrdinalIgnoreCase);
}
开发者ID:heneryville,项目名称:NuGetGallery,代码行数:14,代码来源:AuthenticationService.cs
示例17: ApiController
public ApiController(
IEntitiesContext entitiesContext,
IPackageService packageService,
IPackageFileService packageFileService,
IUserService userService,
INuGetExeDownloaderService nugetExeDownloaderService,
IContentService contentService,
IIndexingService indexingService,
ISearchService searchService,
IAutomaticallyCuratePackageCommand autoCuratePackage,
IStatisticsService statisticsService)
: this(entitiesContext, packageService, packageFileService, userService, nugetExeDownloaderService, contentService, indexingService, searchService, autoCuratePackage)
{
StatisticsService = statisticsService;
}
开发者ID:rrudduck,项目名称:NuGetGallery,代码行数:15,代码来源:ApiController.cs
示例18: PackageDeleteService
public PackageDeleteService(
IEntityRepository<Package> packageRepository,
IEntityRepository<PackageDelete> packageDeletesRepository,
IEntitiesContext entitiesContext,
IPackageService packageService,
IIndexingService indexingService,
IPackageFileService packageFileService,
AuditingService auditingService)
{
_packageRepository = packageRepository;
_packageDeletesRepository = packageDeletesRepository;
_entitiesContext = entitiesContext;
_packageService = packageService;
_indexingService = indexingService;
_packageFileService = packageFileService;
_auditingService = auditingService;
}
开发者ID:ZhiYuanHuang,项目名称:NuGetGallery,代码行数:17,代码来源:PackageDeleteService.cs
示例19: LuceneIndexingService
public LuceneIndexingService(IEntitiesContext entitiesContext)
{
_entitiesContext = (DbContext)entitiesContext;
}
开发者ID:TomOne,项目名称:chocolatey.org,代码行数:4,代码来源:LuceneIndexingService.cs
示例20: PackageRegistrationByKeyQuery
public PackageRegistrationByKeyQuery(IEntitiesContext entities)
{
_entities = entities;
}
开发者ID:Redsandro,项目名称:chocolatey.org,代码行数:4,代码来源:PackageRegistrationByKeyQuery.cs
注:本文中的IEntitiesContext类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论