Exemplo n.º 1
0
 public IdentityRepository(
     IdentifierDefinitionRegistry registry,
     ConsentContext context)
 {
     this.context = context;
     marshallers  = new PersonIdentifierXmlMarshallers(registry);
 }
Exemplo n.º 2
0
 /// <inheritdoc />
 public PersonPredicateBuilder(
     ConsentContext context,
     Func <PersonIdentifier, string> marshallValue
     )
 {
     MarshallValue = marshallValue;
     this.context  = context;
 }
Exemplo n.º 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));
Exemplo n.º 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))));
 }
Exemplo n.º 5
0
 /// <inheritdoc />
 public ContextStore(ConsentContext context)
 {
     set          = context.Set <T>();
     this.context = context;
 }
Exemplo n.º 6
0
 public ContextStoreProvider(ConsentContext context)
 {
     this.context = context;
 }