BoundType: MetabaseObjectUpdateBoundType;
The BoundType property determines a type of repository objects updating.
The assigned value is used for all the objects, which update type is not placed explicitly, that is, IMetabaseUpdateObjectNode.BoundType = MetabaseObjectUpdateBoundType.Inherit.
BoundType and IMetabaseUpdate.Constraint should be used instead of the IMetabaseUpdate.UpdateType property.
Executing the example requires the update file C:\Update.pef. It is also necessary to add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
Update: IMetabaseUpdate;
Begin
MB := MetabaseClass.Active;
Update := Mb.CreateUpdate;
Update.LoadFromFile("C:\Update.pef");
Update.Constraint := MetabaseObjectUpdateConstraint.CreateOnly;
Update.BoundType := MetabaseObjectUpdateBoundType.ById;
Update.SaveToFileNF("C:\Update.pefx");
End Sub UserProc;
After executing the example the following parameters are set for the update, loaded from the C:\Update.pef file:
Update type - by identifiers.
Update method - always create new objects.
Then the update is saved.
See also: