Click or drag to resize

IAnalysisModelServiceAddOrUpdate Method

[This is preliminary documentation and is subject to change.]

Add or update an IAnalysisObject depending on the state of the object in the AnalysisModel. If the IAnalysisObject does not exist, it is added. Otherwise it will be updated.

Namespace:  ModelExchanger.AnalysisDataModel.Contracts
Assembly:  ModelExchanger.AnalysisDataModel.Contracts (in ModelExchanger.AnalysisDataModel.Contracts.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
bool AddOrUpdate(
	AnalysisModel model,
	IAnalysisObject analysisObject,
	IObjectIdentifier identifier = null
)

Parameters

model
Type: ModelExchanger.AnalysisDataModel.ModelsAnalysisModel
The AnalysisModel to which the provided IAnalysisObject needs to be added or updated
analysisObject
Type: ModelExchanger.AnalysisDataModelIAnalysisObject
The IAnalysisObject to be added or updated to or in the provided AnalysisModel
identifier (Optional)
Type: CSInfrastructure.FluentValidationIObjectIdentifier
An optional IObjectIdentifier implementation that allows identification of objects across modules. Used primarily to compose validation warning or error messages

Return Value

Type: Boolean
True if the add or update succeeded, false otherwise.
See Also