Hello, I have the following N1QL query from beer-sample bucket:
public IEnumerable<Beer> Select(IQueryRequest n1qlQuery)
{
var bc = ClusterHelper.GetBucket(CouchbaseConfigHelper.Instance.Bucket);
var results = bc.Query<Beer>(n1qlQuery);
return results.Rows;
}
I get a correct number of results but every property in all POCO object is null. if I use dynamic object instead I get a valid return.
Here is the Beer class
public class Beer
{
public string Name { get; set; }
public int Abv { get; set; }
public int Ibu { get; set; }
public int Srm { get; set; }
public int Upc { get; set; }
public string Type { get; set; }
[JsonProperty("brewery_id")]
public string BreweryId { get; set; }
public string Description { get; set; }
public string Style { get; set; }
public string Category { get; set; }
}
I’d appreciate someones help on this one.
Thank you!