-
Hi. [Table("Authors")] [Table("Books")] Then I defined the following repository public class AuthorRepository : DapperRepository
} and I wrote this code to get author with all related books: private void GetAllAuthors(string conn)
} At this point when I get query result, the authorEnum variable contains author but the Book list is null. What am I doing wrong? Thanks a lot for your support. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
var authorEnum = authorRepo.FindAll(null, x => x.Books)); Look at BaseRepositoriesTests.cs |
Beta Was this translation helpful? Give feedback.
Look at BaseRepositoriesTests.cs