Hi
Simple master-detail relationship
public class SomeData
{
[AutoIncrement] public int Id {get;set;}
....
[ForeignKey(typeof(User)] public int CreatedById {get;set;}
[ForeignKey(typeof(User)] public int? ModifiedById {get;set;}
}
public class User
{
[AutoIncrement] public int Id {get;set;}
[Required] public string Name {get;set;}
}
Autoquery output should be something like:
public class DataResult
{
public int Id {get;set;}
...
public string CreatedByName {get;set;}
public string ModifiedByName {get;set;}
}
Since i cannot add ILeftJoin<Data, Users> multiple times to DTO declaration, is there a way to join it second time as alias?