Exemplo n.º 1
0
 protected override IQueryFluent <DossierFolder> SetEntityIncludeOnDelete(IQueryFluent <DossierFolder> query)
 {
     query.Include(d => d.Dossier)
     .Include(d => d.DossierFolderRoles)
     .Include(d => d.DossierLogs);
     return(query);
 }
Exemplo n.º 2
0
        protected override IQueryFluent <RoleUser> SetEntityIncludeOnUpdate(IQueryFluent <RoleUser> query)
        {
            query.Include(f => f.Role);


            return(query);
        }
 protected override IQueryFluent <TemplateCollaboration> SetEntityIncludeOnUpdate(IQueryFluent <TemplateCollaboration> query)
 {
     query.Include(x => x.TemplateCollaborationUsers)
     .Include(x => x.Roles)
     .Include(x => x.TemplateCollaborationDocumentRepositories);
     return(query);
 }
Exemplo n.º 4
0
 protected override IQueryFluent <Dossier> SetEntityIncludeOnUpdate(IQueryFluent <Dossier> query)
 {
     query.Include(d => d.Contacts)
     .Include(d => d.DossierDocuments)
     .Include(d => d.SourceMetadataValues)
     .Include(d => d.MetadataValueContacts);
     return(query);
 }
Exemplo n.º 5
0
 protected override IQueryFluent <DossierFolder> SetEntityIncludeOnUpdate(IQueryFluent <DossierFolder> query)
 {
     query
     .Include(d => d.Fascicle)
     .Include(d => d.Dossier)
     .Include(d => d.DossierFolderRoles.Select(f => f.Role));
     return(query);
 }
 protected override IQueryFluent <FascicleDocumentUnit> SetEntityIncludeOnDelete(IQueryFluent <FascicleDocumentUnit> query)
 {
     return(query
            .Include(c => c.DocumentUnit.Category)
            .Include(c => c.DocumentUnit.Container)
            .Include(c => c.Fascicle)
            .Include(c => c.Fascicle.Category)
            .Include(c => c.DocumentUnit.UDSRepository));
 }
Exemplo n.º 7
0
 protected override IQueryFluent <Tenant> SetEntityIncludeOnUpdate(IQueryFluent <Tenant> query)
 {
     query.Include(d => d.Configurations)
     .Include(d => d.Containers)
     .Include(d => d.Roles)
     .Include(d => d.PECMailBoxes)
     .Include(d => d.TenantWorkflowRepositories)
     .Include(d => d.Contacts);
     return(query);
 }
Exemplo n.º 8
0
 protected override IQueryFluent <Process> SetEntityIncludeOnUpdate(IQueryFluent <Process> query)
 {
     query.Include(d => d.Roles)
     .Include(d => d.Dossier)
     .Include(d => d.Dossier.DossierFolders)
     .Include(d => d.Dossier.DossierFolders.Select(dfr => dfr.DossierFolderRoles))
     .Include(d => d.Dossier.DossierFolders.Select(dfr => dfr.DossierFolderRoles.Select(r => r.Role)))
     .Include(d => d.Dossier.DossierFolders.Select(pft => pft.FascicleTemplates));
     return(query);
 }
Exemplo n.º 9
0
 protected override IQueryFluent <DocumentUnit> SetEntityIncludeOnUpdate(IQueryFluent <DocumentUnit> query)
 {
     query.Include(f => f.DocumentUnitChains)
     .Include(f => f.DocumentUnitRoles)
     .Include(f => f.DocumentUnitUsers)
     .Include(f => f.Fascicle)
     .Include(f => f.Category)
     .Include(f => f.Container)
     .Include(f => f.UDSRepository);
     return(query);
 }
Exemplo n.º 10
0
        protected override IQueryFluent <Fascicle> SetEntityIncludeOnUpdate(IQueryFluent <Fascicle> query)
        {
            if (!CurrentUpdateActionType.HasValue || (CurrentUpdateActionType.HasValue && CurrentUpdateActionType != UpdateActionType.OpenFascicleClosed))
            {
                query = query.Include(f => f.Contacts)
                        .Include(f => f.FascicleDocuments)
                        .Include(f => f.DossierFolders.Select(z => z.Dossier))
                        .Include(f => f.SourceMetadataValues)
                        .Include(f => f.MetadataValueContacts);
            }

            return(query);
        }
Exemplo n.º 11
0
        protected override IQueryFluent <Fascicle> SetEntityIncludeOnDelete(IQueryFluent <Fascicle> query)
        {
            if (CurrentDeleteActionType.HasValue && CurrentDeleteActionType == DeleteActionType.CancelFascicle)
            {
                query = query
                        .Include(f => f.FascicleRoles)
                        .Include(f => f.FascicleDocuments)
                        .Include(f => f.FascicleLogs)
                        .Include(f => f.DossierFolders)
                        .Include(f => f.FascicleLinks)
                        .Include(f => f.WorkflowInstances)
                        .Include(f => f.Contacts)
                        .Include(f => f.SourceMetadataValues)
                        .Include(f => f.MetadataValueContacts);
            }

            return(query);
        }
Exemplo n.º 12
0
 protected override IQueryFluent <ResolutionKind> SetEntityIncludeOnDelete(IQueryFluent <ResolutionKind> query)
 {
     return(query.Include(x => x.ResolutionKindDocumentSeries));
 }
Exemplo n.º 13
0
 protected override IQueryFluent <FascicleFolder> SetEntityIncludeOnUpdate(IQueryFluent <FascicleFolder> query)
 {
     return(query.Include(x => x.Fascicle));
 }
Exemplo n.º 14
0
 protected override IQueryFluent <Category> SetEntityIncludeOnUpdate(IQueryFluent <Category> query)
 {
     return(query.Include(i => i.MetadataRepository));
 }
Exemplo n.º 15
0
 protected override IQueryFluent <Resolution> SetEntityIncludeOnUpdate(IQueryFluent <Resolution> query)
 {
     query.Include(i => i.FileResolution);
     return(query);
 }
 protected override IQueryFluent <CategoryFascicleRight> SetEntityIncludeOnDelete(IQueryFluent <CategoryFascicleRight> query)
 {
     return(query.Include(i => i.CategoryFascicle.Category)
            .Include(i => i.Role));
 }
Exemplo n.º 17
0
 protected override IQueryFluent <DocumentSeriesConstraint> SetEntityIncludeOnUpdate(IQueryFluent <DocumentSeriesConstraint> query)
 {
     query.Include(x => x.DocumentSeries);
     return(query);
 }
Exemplo n.º 18
0
 protected override IQueryFluent <WorkflowInstance> SetEntityIncludeOnUpdate(IQueryFluent <WorkflowInstance> query)
 {
     return(query
            .Include(f => f.WorkflowProperties)
            .Include(r => r.WorkflowInstanceRoles));
 }
Exemplo n.º 19
0
 protected override IQueryFluent <UDSTypology> SetEntityIncludeOnUpdate(IQueryFluent <UDSTypology> query)
 {
     query.Include(t => t.UDSRepositories);
     return(query);
 }
Exemplo n.º 20
0
 protected override IQueryFluent <Protocol> SetEntityIncludeOnUpdate(IQueryFluent <Protocol> query)
 {
     query.Include(d => d.ProtocolRoles.Select(f => f.Role))
     .Include(d => d.ProtocolUsers);
     return(query);
 }
Exemplo n.º 21
0
 protected override IQueryFluent <ProtocolDraft> SetEntityIncludeOnUpdate(IQueryFluent <ProtocolDraft> query)
 {
     query.Include(f => f.Collaboration);
     return(query);
 }
Exemplo n.º 22
0
 protected override IQueryFluent <UDSDocumentUnit> SetEntityIncludeOnDelete(IQueryFluent <UDSDocumentUnit> query)
 {
     return(query.Include(i => i.Repository).Include(i => i.Repository.Container));
 }
Exemplo n.º 23
0
 protected override IQueryFluent <CategoryFascicle> SetEntityIncludeOnDelete(IQueryFluent <CategoryFascicle> query)
 {
     return(query.Include(c => c.Category));
 }
Exemplo n.º 24
0
 protected override IQueryFluent <Contact> SetEntityIncludeOnUpdate(IQueryFluent <Contact> query)
 {
     return(query.Include(i => i.Title)
            .Include(i => i.PlaceName));
 }
Exemplo n.º 25
0
 protected override IQueryFluent <ResolutionKindDocumentSeries> SetEntityIncludeOnUpdate(IQueryFluent <ResolutionKindDocumentSeries> query)
 {
     return(query.Include(x => x.DocumentSeries)
            .Include(x => x.ResolutionKind)
            .Include(x => x.DocumentSeriesConstraint));
 }
Exemplo n.º 26
0
 protected override IQueryFluent <WorkflowRepository> SetEntityIncludeOnUpdate(IQueryFluent <WorkflowRepository> query)
 {
     query.Include(x => x.Roles);
     return(query);
 }
Exemplo n.º 27
0
 protected override IQueryFluent <WorkflowActivity> SetEntityIncludeOnUpdate(IQueryFluent <WorkflowActivity> query)
 {
     query.Include(wa => wa.WorkflowInstance);
     return(query);
 }
Exemplo n.º 28
0
 protected override IQueryFluent <DossierRole> SetEntityIncludeOnDelete(IQueryFluent <DossierRole> query)
 {
     return(query.Include(x => x.Role));
 }
Exemplo n.º 29
0
 protected override IQueryFluent <FascicleRole> SetEntityIncludeOnDelete(IQueryFluent <FascicleRole> query)
 {
     return(query.Include(x => x.Role)
            .Include(f => f.Fascicle));
 }