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
I have implemented a custom template MvcTemplate<TModel> : MvcTemplate : TemplateBase and in the config file <templates baseType="MyNamespace.MvcTemplateBase```1, MyAssembly" language="C#" ... /> but the generated code inherits from MvcTemplateBase, but I NEED it to inherit MvcTemplateBase<TModel>.
Am I doing something wrong?
I don't have the have the code here, but as far as I remember, I got this workarounded passing the model type to Factory.CreateTemplateInstance then to CreateBucket and changing the XiptonEngineHost.DefaultBaseClass to MvcTemplate<MyModelType>.
The text was updated successfully, but these errors were encountered:
I have implemented a custom template
MvcTemplate<TModel> : MvcTemplate : TemplateBase
and in the config file<templates baseType="MyNamespace.MvcTemplateBase```1, MyAssembly" language="C#" ... />
but the generated code inherits fromMvcTemplateBase
, but I NEED it to inheritMvcTemplateBase<TModel>
.Am I doing something wrong?
I don't have the have the code here, but as far as I remember, I got this workarounded passing the model type to
Factory.CreateTemplateInstance
then toCreateBucket
and changing theXiptonEngineHost.DefaultBaseClass
toMvcTemplate<MyModelType>
.The text was updated successfully, but these errors were encountered: