We are upgrading Sitecore to 9.3
and glass mapper to Glass.Mapper.Sc.93 (v5.6.158-alpha)
. Having an issue with most of our Glass.Mapper.Sc.Fields.Link
types coming back as null. which used to work fine in v4. I am a total noob to glass btw.
Here is the error: Databases are identical except of course one has been upgraded to sc 9.3. Taking it from the top:
Secondary navigation calls Model.SearchPage
which is coming back as null when using Glass V5
In Glass V4 it works just fine and is not null:
Not sure if relevant but here is the mapping (identical in V4 and V5):
Here is the calling code that works in v4. retItem.SearchPage
is populated and not null:
Here is the v5 code (I realize the ISitecoreContext is marked obsolete in v5, so I tried the following approaches to get the item in V5). All items have their .SearchPage property returned as null: