I want to use dapper to query a complex entity from database.
Ex. Job is top level entity I want to query.
public class Job
{
public User User { get; set; }
}
public class Account
{
}
public class Roles
{
public IList<Schedule> Schedules { get; set; }
}
public class Devices
{
public IList<Roles> Roles { get; set; }
public IList<Account> Accounts { get; set; }
}
public class Schedule
{
}
public class User
{
public IList<Account> Accounts { get; set; }
public Profile Profile { get; set; }
}
public class Profile
{
public IList<Account> Accounts { get; set; }
}
Is this even possible with dapper, if it is then is it worth using dapper for this or should I use some other ORM (EF, LLBLGen, NH)?