CkMigrationResult
Namespace: Meshmakers.Octo.Runtime.Contracts.CkModelMigrations
Result of a CK model migration execution
public class CkMigrationResult
Inheritance Object → CkMigrationResult
Properties
Success
Whether the migration completed successfully
public bool Success { get; set; }
Property Value
FromModel
Source CK model version
public CkModelId FromModel { get; set; }
Property Value
CkModelId
ToModel
Target CK model version
public CkModelId ToModel { get; set; }
Property Value
CkModelId
EntitiesAdded
Number of entities added
public int EntitiesAdded { get; set; }
Property Value
EntitiesUpdated
Number of entities updated
public int EntitiesUpdated { get; set; }
Property Value
EntitiesDeleted
Number of entities deleted
public int EntitiesDeleted { get; set; }
Property Value
TotalEntitiesAffected
Total number of entities affected
public int TotalEntitiesAffected { get; }
Property Value
DurationMs
Duration of the migration in milliseconds
public long DurationMs { get; set; }
Property Value
Errors
Errors that occurred during migration
public List<string> Errors { get; set; }
Property Value
Warnings
Warnings generated during migration
public List<string> Warnings { get; set; }
Property Value
BackupId
ID of the backup created before migration (if CreateBackup was true)
public string BackupId { get; set; }
Property Value
Constructors
CkMigrationResult()
Caution
Constructors of types with required members are not supported in this version of your compiler.
public CkMigrationResult()
Methods
Succeeded(CkModelId, CkModelId)
Creates a successful result
public static CkMigrationResult Succeeded(CkModelId fromModel, CkModelId toModel)
Parameters
fromModel CkModelId
toModel CkModelId
Returns
Failed(CkModelId, CkModelId, String)
Creates a failed result
public static CkMigrationResult Failed(CkModelId fromModel, CkModelId toModel, string error)
Parameters
fromModel CkModelId
toModel CkModelId
error String