Please any one say that when we will implements IDfDynamicInheritance to our TBO class ? what are its advantages?
Always implement it. There are no methods to implement anyway.
A sidenote on this issue:
In my project i have the following object structure:
dm_folder
---- xx_project (custom metadata)
--------- xx_project_subfolder (no custom metadata, only the metadata from xx_project)
If an object of xx_project is created, a whole lot of TBO-action has to be executed, including the creation of xx_project_subfolders beneath the new xx_project.
I created a second TBO for xx_project_subfolder which inherited from DfDocument (so not from XXProject) and implemented IXXProject and IDfDynamicInheritance. Eventhough in my code I did not reference the XXProject TBO, the TBO code from XXProject was executed (what I didn't want, because it caused an infinite loop creating subfolders).
I removed IDfDynamicInheritance from the subtype's TBO and it worked perfectly.
So I figured, if you have a custom subtype of a custom supertype (that has a custom TBO) but the TBO-logic of the subtype is completely unrelated to the supertype's TBO, dont implement IDfDynamicInheritance.
Any input on this is welcome ofcourse.