Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Issue with INNER JOIN

$
0
0

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


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>