Hi,
Having some trouble with subtypes and virtual methods ...
Why does this code use the overriden function on the subtype class:
ArtikelCollection _Artikels = new ArtikelCollection();
IPredicateExpression _Filter = new PredicateExpression();
_Filter.Add(new FieldCompareValuePredicate(ArtikelFields.Id, ComparisonOperator.Equal,107));
_Artikels.GetMulti(_Filter);
_Artikels[0].getReferentieArtikels(1043);
And this code the virtual function on the base class:
ArtikelEntity _Artikel = new ArtikelEntity(107);
_Artikel.getReferentieArtikels(1043);
ArtikelEntity is the base class, Entity 107 is of SubType VerpakkingArtikelEntity
getSubcategorieen is defined as Virtual on the base class ArtikelEntity, and as override on the derived VerpakkingArtikel entity.
Thanks,
Joeri