/// <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)); }
/// <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)))); }
/// <inheritdoc /> public ContextStore(ConsentContext context) { set = context.Set <T>(); this.context = context; }