Skip to content

Commit

Permalink
fixed typo in code
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpietzko authored Oct 11, 2024
1 parent 0d470d1 commit f451df4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var onePerson = As<Person>(App.Data.GetStream("Person"));
// Get all, convert, then find the one with the ID - null if no match
var person45 = AsList<Person>(App.Data.GetStream("Person")).FirstOrDefault(p => p.Id == 45);
// Get one and convert to Person - null if no match; faster
var person72 = As<Person>(App.Data.GetStream("Person").List.FirstOrDefault(e => e.EntityId = 72));
var person72 = As<Person>(App.Data.GetStream("Person").List.FirstOrDefault(e => e.EntityId == 72));
```

This all works, but it's a bit verbose and you will sometimes do too much work, which is not ideal for performance.
Expand Down

0 comments on commit f451df4

Please sign in to comment.