コード例 #1
0
        public EntityRepositoryGroup(IEnumerable <AbstractEntityRepository> childRepositories,
                                     IEnumerable <AbstractRevisionRepository <TypedEntity> > childRevisionSessions,
                                     IEnumerable <AbstractSchemaRepository> childSchemaSessions,
                                     IEnumerable <AbstractRevisionRepository <EntitySchema> > childSchemaRevisionSessions,
                                     Uri idRoot,
                                     AbstractScopedCache scopedCache,
                                     IFrameworkContext frameworkContext,
                                     RepositoryContext hiveContext)
            : base(childRepositories, idRoot, scopedCache, hiveContext)
        {
            Mandate.ParameterNotNull(idRoot, "idRoot");
            Mandate.ParameterNotNull(scopedCache, "scopedCache");
            Mandate.ParameterNotNullOrEmpty(childRepositories, "childRepositories");
            Mandate.ParameterNotNullOrEmpty(childRevisionSessions, "childRevisionSessions");
            Mandate.ParameterNotNullOrEmpty(childSchemaSessions, "childSchemaSessions");
            Mandate.ParameterNotNullOrEmpty(childSchemaRevisionSessions, "childSchemaRevisionSessions");

            ChildSessions    = childRepositories;
            FrameworkContext = frameworkContext ?? childRepositories.First().FrameworkContext;
            Revisions        = new RevisionRepositoryGroup <TFilter, TypedEntity>(childRevisionSessions, IdRoot, scopedCache, hiveContext);
            Schemas          = new SchemaRepositoryGroup <TFilter>(childSchemaSessions, childSchemaRevisionSessions, IdRoot, scopedCache, hiveContext);
        }
コード例 #2
0
 public SchemaRepositoryGroup(IEnumerable <AbstractSchemaRepository> childRepositories, IEnumerable <AbstractRevisionRepository <EntitySchema> > childRevisionSessions, Uri idRoot, AbstractScopedCache scopedCache, RepositoryContext hiveContext)
     : base(childRepositories, idRoot, scopedCache, hiveContext)
 {
     ChildSessions = childRepositories;
     Revisions     = new RevisionRepositoryGroup <TFilter, EntitySchema>(childRevisionSessions, IdRoot, scopedCache, hiveContext);
 }