public IdentityRepository( IdentifierDefinitionRegistry registry, ConsentContext context) { this.context = context; marshallers = new PersonIdentifierXmlMarshallers(registry); }
/// <inheritdoc /> public PersonPredicateBuilder( ConsentContext context, Func <PersonIdentifier, string> marshallValue ) { MarshallValue = marshallValue; this.context = context; }
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));
/// <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; }
public ContextStoreProvider(ConsentContext context) { this.context = context; }