Hello there, i'm trying to use this extension in conjunction with fluentmap.
I have a class with some properties:
public class Projeto : BaseEntity
{
public Cliente Cliente { get; set; }
public int ClienteId { get; set; }
public VerticalDeNegocio VerticalDeNegocio { get; set; }
public int VerticalDeNegocioId { get; set; }
}
Basically, i'm trying to fetch all data using the Get method available on Dommel:
var p = Get<Projeto, Cliente, VerticalDeNegocio, Projeto>(id, (p, c, v) =>
{
p.Cliente = c;
p.VerticalDeNegocio = v;
return p;
}); //Doesn't work
But i get the following error: Could not resolve foreign key property. Source type 'xx.xx.Cliente'; including type: 'xx.xx.VerticalDeNegocio'.
Is there some way to accomplish this join using this method? Looks like the method is trying to join the Id's from Cliente and VerticalDeNegocio, but what needs to be done is: Projeto and VerticalDeNegocio; Projeto and Cliente.
Besides that, if I query in a separate way, it works:
var p = Get<Projeto, Cliente, Projeto>(id, (p, c) =>
{
p.Cliente = c;
return p;
}); //Works
var x = Get<Projeto, VerticalDeNegocio, Projeto>(id, (p, v) =>
{
p.VerticalDeNegocio = v;
return p;
}); //Works
Hello there, i'm trying to use this extension in conjunction with fluentmap.
I have a class with some properties:
Basically, i'm trying to fetch all data using the Get method available on Dommel:
But i get the following error: Could not resolve foreign key property. Source type 'xx.xx.Cliente'; including type: 'xx.xx.VerticalDeNegocio'.
Is there some way to accomplish this join using this method? Looks like the method is trying to join the Id's from Cliente and VerticalDeNegocio, but what needs to be done is: Projeto and VerticalDeNegocio; Projeto and Cliente.
Besides that, if I query in a separate way, it works:
Thanks.