You are here: Configuration > Class Specific Configuration > Rename Class

Rename Class

You can rename a class. Useful when you reactor you're code. See "Refactoring and Schema Evolution"

IEmbeddedConfiguration configuration = Db4oEmbedded.NewConfiguration();
configuration.Common.ObjectClass(typeof(Person)).Rename("Db4oDoc.NewNamespace.NewName");
ObjectConfigurationExamples.cs: Rename this type
Dim configuration As IEmbeddedConfiguration = Db4oEmbedded.NewConfiguration()
configuration.Common.ObjectClass(GetType(Person)).Rename("Db4oDoc.NewNamespace.NewName")
ObjectConfigurationExamples.vb: Rename this type