Пример #1
0
 public IdentityRepository(
     IdentifierDefinitionRegistry registry,
     ConsentContext context)
 {
     this.context = context;
     marshallers  = new PersonIdentifierXmlMarshallers(registry);
 }
Пример #2
0
 /// <inheritdoc />
 public PersonPredicateBuilder(
     ConsentContext context,
     Func <PersonIdentifier, string> marshallValue
     )
 {
     MarshallValue = marshallValue;
     this.context  = context;
 }
Пример #3
0
 public static IQueryable <T> Search <T>(
     this IQueryable <T> source, ConsentContext db, params ICriteria <T>[] criteria) where T : new() =>
 criteria.Aggregate(source, (filtered, currentCriteria) => currentCriteria.ApplyTo(filtered, db));
Пример #4
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))));
 }
Пример #5
0
 /// <inheritdoc />
 public ContextStore(ConsentContext context)
 {
     set          = context.Set <T>();
     this.context = context;
 }
Пример #6
0
 public ContextStoreProvider(ConsentContext context)
 {
     this.context = context;
 }