Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement factory for creation of CustomEntity/Page base classes #30
I want to add custom data to my page base classes so it was available on every page, the best way I can think of doing that would be to override the factory that creates the base page class and use it to add my custom data. My scenario was that I had user data that I added to every page and need to access it in the master page.
Will add more detail here after investigating it a bit further.
This has come up again with a developer wanting to have a "LayoutModel" attached to every view model and consumed in the layout page. This would contain properties like custom meta data. The developer has solved this for now by creating a custom view base class and initializing it using an action filter.