示例#1
0
 public MetadataService(IMetadataProvider metadataProvider
                        , IAttributeFinder attributeFinder
                        , IDefaultAttributeProvider defaultAttributeProvider
                        , IRelationShipFinder relationShipFinder)
 {
     _metadataProvider         = metadataProvider;
     _attributeFinder          = attributeFinder;
     _defaultAttributeProvider = defaultAttributeProvider;
     _relationShipFinder       = relationShipFinder;
 }
 public AttributeMetadataController(IWebAppContext appContext
                                    , IEntityFinder entityService
                                    , IAttributeFinder attributeService
                                    , IDefaultAttributeProvider defaultAttributeProvider
                                    , IAttributeUpdater attributeUpdater)
     : base(appContext)
 {
     _entityFinder             = entityService;
     _attributeFinder          = attributeService;
     _defaultAttributeProvider = defaultAttributeProvider;
     _attributeUpdater         = attributeUpdater;
 }
示例#3
0
 public QueryViewCreater(IAppContext appContext
                         , IQueryViewRepository queryViewRepository
                         , IDefaultAttributeProvider defaultAttributeProvider
                         , ILocalizedLabelBatchBuilder localizedLabelService
                         , IQueryViewDependency dependencyService
                         , IDefaultQueryViewProvider defaultQueryViewProvider)
 {
     _appContext               = appContext;
     _queryViewRepository      = queryViewRepository;
     _localizedLabelService    = localizedLabelService;
     _defaultAttributeProvider = defaultAttributeProvider;
     _dependencyService        = dependencyService;
     _defaultQueryViewProvider = defaultQueryViewProvider;
     _cacheService             = new Caching.CacheManager <Domain.QueryView>(_appContext.OrganizationUniqueName + ":queryviews", QueryViewCache.BuildKey);
 }
示例#4
0
 public EntityCreater(IAppContext appContext
                      , IEntityRepository entityRepository
                      , ILocalizedLabelBatchBuilder localizedLabelService
                      , ISolutionComponentService solutionComponentService
                      , IDefaultAttributeProvider defaultAttributeProvider
                      , IAttributeCreater attributeCreater
                      , IEventPublisher eventPublisher
                      )
 {
     _appContext               = appContext;
     _loc                      = _appContext.GetFeature <ILocalizedTextProvider>();
     _entityRepository         = entityRepository;
     _localizedLabelService    = localizedLabelService;
     _solutionComponentService = solutionComponentService;
     _defaultAttributeProvider = defaultAttributeProvider;
     _attributeCreater         = attributeCreater;
     _cacheService             = new Caching.CacheManager <Domain.Entity>(_appContext.OrganizationUniqueName + ":entities", _appContext.PlatformSettings.CacheEnabled);
     _eventPublisher           = eventPublisher;
 }
示例#5
0
 public AttributeCreater(IAppContext appContext
                         , IAttributeRepository attributeRepository
                         , IEntityFinder entityFinder
                         , IRelationShipCreater relationShipCreater
                         , IOptionSetCreater optionSetCreater
                         , IStringMapCreater stringMapCreater
                         , ILocalizedLabelBatchBuilder localizedLabelService
                         , IMetadataService metadataService
                         , IDefaultAttributeProvider defaultAttributeProvider
                         , IAttributeDependency dependencyService)
 {
     _appContext          = appContext;
     _attributeRepository = attributeRepository;
     _loc = _appContext.GetFeature <ILocalizedTextProvider>();
     _localizedLabelService    = localizedLabelService;
     _entityFinder             = entityFinder;
     _relationShipCreater      = relationShipCreater;
     _optionSetCreater         = optionSetCreater;
     _stringMapCreater         = stringMapCreater;
     _cacheService             = new Caching.CacheManager <Domain.Attribute>(_appContext.OrganizationUniqueName + ":attributes", AttributeCache.BuildKey);
     _metadataService          = metadataService;
     _defaultAttributeProvider = defaultAttributeProvider;
     _dependencyService        = dependencyService;
 }
示例#6
0
 public DefaultQueryViewProvider(IAppContext appContext
                                 , IDefaultAttributeProvider defaultAttributeProvider)
 {
     _defaultAttributeProvider = defaultAttributeProvider;
     _appContext = appContext;
 }