Collection Rename
The Model.OnCollectionRename
method allows you to listen to when the collection corresponding to the model is renamed in the database.
Usage
CastleModel.OnCollectionRename(func() {
fmt.Println("Castle collection renamed")
})
The Model.OnCollectionRename
method allows you to listen to when the collection corresponding to the model is renamed in the database.
CastleModel.OnCollectionRename(func() {
fmt.Println("Castle collection renamed")
})