Skip to content
Discussion options

You must be logged in to vote

@arnzuk Yes.

[Fact]
public async Task FindByIdAsync_WithJoins_NotNull()
{
var user = await Db.Users.FindByIdAsync<Car, Phone, Address>(1, x => x.Cars, x => x.Phone, x => x.Addresses, TestContext.Current.CancellationToken);
Assert.Null(user.Deleted);
Assert.Equal("TestName0", user.Name);
Assert.NotNull(user.Phone);
Assert.NotNull(user.Cars);
Assert.NotNull(user.Addresses);
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by phnx47
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
Converted from issue

This discussion was converted from issue #506 on October 13, 2025 05:26.