Exemplo n.º 1
0
 public CollectionIncludeRelatedValuesStrategy(
     IAsyncEnumerable <IValueReader> relatedValueReaders, Func <IValueReader, object> materializer)
 {
     _materializer = materializer;
     _includeCollectionIterator
         = new AsyncIncludeCollectionIterator(relatedValueReaders.GetEnumerator());
 }
            public IncludeCollectionAsyncEnumerator(IncludeCollectionAsyncEnumerable <TResult> enumerable)
            {
                _enumerable = enumerable;
                _enumerator = _enumerable._source.GetEnumerator();

                _relatedValuesIterator
                    = new AsyncIncludeCollectionIterator(_enumerable._relatedValueReaders.GetEnumerator());
            }
Exemplo n.º 3
0
 public RelatedValuesEnumerable(
     AsyncIncludeCollectionIterator iterator,
     EntityKey primaryKey,
     Func <IValueReader, EntityKey> relatedKeyFactory)
 {
     _iterator          = iterator;
     _primaryKey        = primaryKey;
     _relatedKeyFactory = relatedKeyFactory;
 }
Exemplo n.º 4
0
 public CollectionIncludeRelatedValuesStrategy(IAsyncEnumerable <IValueReader> relatedValueReaders)
 {
     _includeCollectionIterator
         = new AsyncIncludeCollectionIterator(relatedValueReaders.GetEnumerator());
 }