When developing your own modules and other stuff you often have to modify existing mojoPortal code (like dPortal.cs file). But I think that the base framework code should be intact when you want to develop your own module.
One solution would be to write all necessary classes like dbPortalYourModule.cs which extends the base dbPortal class. In many cases that would be sufficient. But sometimes it may not work because you need the dbPortal instance (and not dbPortalYourModule instance, although it extends the base dbPortal class). Therefore I think it would be a good idea to mark the dbPortal (and why not other such kind of classes) to be partial classes. Then it's easy to write your partial class and put all module specific functionality to there.
What you think of it? Maybe you have some better ideas already?