Пример #1
0
            /// <inheritdoc />
            public void Visit(PersonIdentifierSpecification specification)
            {
                var identifier = specification.PersonIdentifier;
                var xmlValue   = MarshallValue(identifier);

                Add(
                    p => context.Set <PersonIdentifierEntity>().Any(
                        _ => _.Person == p &&
                        _.TypeName == identifier.Definition.SystemName &&
                        _.Deleted == null &&
                        _.Value == xmlValue));
            }
Пример #2
0
 /// <inheritdoc />
 public IQueryable <PersonEntity> ApplyTo(IQueryable <PersonEntity> queryable, ConsentContext context)
 {
     if (string.IsNullOrEmpty(SubjectIdentifier))
     {
         return(queryable);
     }
     return(queryable.Where(
                p =>
                context.Set <StudySubjectEntity>().Any(
                    s => s.Person == p &&
                    s.SubjectIdentifier.Contains(SubjectIdentifier))));
 }
Пример #3
0
 /// <inheritdoc />
 public ContextStore(ConsentContext context)
 {
     set          = context.Set <T>();
     this.context = context;
 }