I have doubts about how to do a query using inner join. My issue is that with the following code I try to do the query but the results are null.
So this is my code:
public List<Example> Example(int pIntDeal)
{
try
{
conexion.Conect();
var collection=conexion.DB.QueryAsync<Example>("select Ar.Description, Ar.Price FROM Articles As Ar JOIN " +
" Inventory AS In On In.CodeArticle = Ar.CodeArticle AND In.IdDeal = Ar.IdDeal WHERE Ar.IdDeal=?",pIntDeal);
return collection.Result;
}
catch(Exception ex) {
throw ex;
}
}
I need to knows if is posible to do it? (INNER JOIN) and how do it? I proved also with the Word JOIN Thanks