Struct MigrationDescription<TVersion, TTarget>
Describe migration steps to perform when upgrading from one version of an object to another.
상속된 멤버
네임스페이스: UnityEngine.Rendering.HighDefinition
어셈블리: solution.dll
구문
public struct MigrationDescription<TVersion, TTarget> where TVersion : struct, IConvertible where TTarget : class, IVersionable<TVersion>
타입 파라미터
이름 | 설명 |
---|---|
TVersion | An enum identifying the version. |
TTarget | The type to migrate. |
생성자
이름 | 설명 |
---|---|
MigrationDescription(params MigrationStep<TVersion, TTarget>[]) | Build a migration description. |
메서드
이름 | 설명 |
---|---|
ExecuteStep(TTarget, TVersion) | Execute a migration step. |
Migrate(TTarget) | Execute the migration on the provided instance. All steps with a version greater than the instance version will be executed in ascending order. Eg: for instance with version 2 and step version 1, 3, 5, and 6. It will execute steps 3 then 5 then 6. |