Skip to content

LoadAsync immediately after SaveChangesAsync returns null #3433

Answered by mysticmind
thomaslevesque asked this question in Q&A
Discussion options

You must be logged in to vote

@thomaslevesque I figured out the issue, change session.Events.StartStream<Todo>(@event); to session.Events.StartStream<Todo>(id, @event);. Essentially, we are setting the stream Id same as the Todo Id otherwise the stream will generate it's own Id which will reflect as the Todo Id in the projected document.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@mysticmind
Comment options

@thomaslevesque
Comment options

Comment options

You must be logged in to vote
4 replies
@thomaslevesque
Comment options

@mysticmind
Comment options

@mysticmind
Comment options

@thomaslevesque
Comment options

Answer selected by thomaslevesque
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants