I have a interface that is instantiated by Glass using a Glass sitecoreService.Cast method. The interface has a couply of properties I would like to populate using a query but this doesn't work. Using 'SitecoreChildren' attribute does work though.
Here's my interface
public partial interface IVergoeding
{
[SitecoreQuery("./*[@@templateid='1AEE2D9C-1599-4B49-9DB2-FD638969963C']", IsRelative = true)]
IEnumerable<IVergoedingRegel> VergoedingRegels { get; set; }
}
I checked the templateID and that is OK. Any ideas?