The script bellow is used in a synchronization project as a method on a mapping where Department or Locality schema is used.
<Tag("Projector")>
<BaseObjectType("Department")>
<BaseObjectType("Locality")>
Public Sub SHR_Department_RemoveManager(unit As IUnitOfWork , entity As IEntity())
 
 
 For Each currEntity As IEntity In entity
 
 If Not String.IsNullOrEmpty(currEntity.GetValue("UID_PersonHead").ToString()) Then
 currEntity.PutValue("UID_PersonHead","")
 unit.Put(currEntity)
 End If 
 
 Next
 
End Sub
This is very useful if we can write our own methods for other tables and uses. Just changing BaseObjectType does not display a new script in a list of methods in sync editor so I presume something else must be done.
What?