コード例 #1
0
 public AsyncEnumerator(IEntityEnumeratorVisitor visitor, IEntityGraph graph, IEntityEnumeratorBuffer buffer, IEntityEnumeratorSink sink, IDatabaseReader reader, bool ownsReader)
 {
     this.Visitor          = visitor;
     this.Graph            = graph;
     this.Buffer           = buffer;
     this.Sink             = sink;
     this.Reader           = reader;
     this.ReaderEnumerator = reader.GetAsyncEnumerator();
     this.OwnsReader       = ownsReader;
 }
コード例 #2
0
 public void Visit(IEntityGraph graph, IEntityEnumeratorBuffer buffer, IEntityEnumeratorSink sink, IDatabaseReaderRecord record, EnumeratorFlags flags)
 {
     buffer.Update(record);
     this.Visit(buffer, sink, graph.Root);
 }
コード例 #3
0
 public EntityAction Visit <T>(IEntityGraph graph, T persisted, T updated)
 {
     return(this.OnVisit(graph.Root, new Frame <T>(persisted, updated)));
 }
コード例 #4
0
 public EntityAction Visit(IEntityGraph graph, object persisted, object updated)
 {
     return((EntityAction)this.Members.Invoke(this, "Visit", (persisted ?? updated).GetType(), graph, persisted, updated));
 }