suggest using partial class

Topics: Core, Customizing Orchard, General, Writing modules
May 19, 2012 at 4:21 PM

instead of  using , for example,

public class Migrations : DataMigrationImpl

use:

public partial class Migrations : DataMigrationImpl

in order to update data in  UpdateFrom99(), UpdateFrom100()

so the module can be extended by another person in another module to change something such as settings.....

is it  better  to way and more extensible?

thanks

andy

Coordinator
May 19, 2012 at 7:56 PM

I would strongly advise against that. Plus, it wouldn't work and it's not necessary. Tell me what your scenario is and I'll show you how to do it without partial classes.