I want to use in built NPoco functions for using join rather than any in query join support like:
var users = db.FetchOneToMany<UserDto, CarDto>(x => x.UserId,
"select u.*, c.* from Users u inner join Cars c on u.UserId = c.UserId order by u.UserId");
Please anybody give some idea how can use Joins in NPoco using C#.
Have a look at this example which has a one-to-many relationship from Person to Address, i.e. a person can have many addresses. You use IncludeMany combined with the Reference attribute.
This is how you retrieve all the people, each person with a list of addresses.
To take it to the next level, you may need to filter out the addresses based on their
Statusor something.