Click or drag to resize

UpdateStepBase Class

Base class for application-specific update steps.
Inheritance Hierarchy
SystemObject
  PDTec.IceNet.Sdk.Model.UpdateUpdateStepBase

Namespace:  PDTec.IceNet.Sdk.Model.Update
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public abstract class UpdateStepBase

The UpdateStepBase type exposes the following members.

Constructors
  NameDescription
Protected methodUpdateStepBase
Initializes a new instance of the UpdateStepBase class
Top
Properties
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnDisplayMessage
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Protected methodUpdateBase
Top
Examples
[UpdateStep(PackageName = "GL.TIS.HullManager", FromVersion = "1.3.0.2", ToVersion = "1.3.0.3")]
internal class UpdateStep13 : UpdateStepBase
{
    public override void Update()
    {
        IPackage pPackageHullManager = Repository.GetPackageByName("GL.TIS.HullManager");

        // 
        // [0] Update GL.TIS.Base...
        // 

        UpdateBase(Assembly.Load("GL.TIS.BusinessLogic"), "GL.TIS.Base", "2.0.0.0", "2.0.0.1");

        // 
        // [1] Add relationship type GL.TIS.HullManager.HcfGeometryOriginal...
        // 

        IRelType pRelType = Repository.CreateRelType("GL.TIS.HullManager.HcfGeometryOriginal", "HCF Geometry Original", "", "", "", Cardinality.Aggregation, Cardinality.C0_1, false, false, pPackageHullManager);

        pRelType.AddObjType(Repository.GetObjTypeByName("GL.TIS.Base.BaseShip"),            Direction.From);
        pRelType.AddObjType(Repository.GetObjTypeByName("GL.TIS.Documents.HcfGeometry"),    Direction.To);

        // 
        // Done...
        // 

        pPackageHullManager.Version = ToVersion;
    }
}
See Also