You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have an App that when it loads will dynamically load in the Clients project code. Each main object extends the base object. That base object uses interfaces and other base classes.
In the Client solution I have created a Class that extends ClassMap. All works until I introduce new fields that are for a client specifically and add that to the mapping. The Map object recognizes the Client class........Again up to this point all is good.
Then I try to Map the client specific fields like this.
Map(m => ((ClientFoo)m.Foo).DayPeriod).Name("Day Period").Index(38);
when I run this the ReferenceMaps list in debug is showing the base Foo interface.........since those new properties are not on the base interface, I get an error. I basically want a way to make it use the client concreate class as the reference map.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
We have an App that when it loads will dynamically load in the Clients project code. Each main object extends the base object. That base object uses interfaces and other base classes.
In the Client solution I have created a Class that extends ClassMap. All works until I introduce new fields that are for a client specifically and add that to the mapping. The Map object recognizes the Client class........Again up to this point all is good.
Then I try to Map the client specific fields like this.
Map(m => ((ClientFoo)m.Foo).DayPeriod).Name("Day Period").Index(38);
when I run this the ReferenceMaps list in debug is showing the base Foo interface.........since those new properties are not on the base interface, I get an error. I basically want a way to make it use the client concreate class as the reference map.
thanks
Beta Was this translation helpful? Give feedback.
All reactions