Method New
New<TVersion, TTarget>(TVersion, Action<TTarget>)
Create a new MigrationStep<TVersion, TTarget>.
선언
public static MigrationStep<TVersion, TTarget> New<TVersion, TTarget>(TVersion version, Action<TTarget> action) where TVersion : struct, IConvertible where TTarget : class, IVersionable<TVersion>
파라미터
타입 | 이름 | 설명 |
---|---|---|
TVersion | version | The version of the step. |
Action<TTarget> | action | The migration action to perform. |
반환
타입 | 설명 |
---|---|
MigrationStep<TVersion, TTarget> | The migration step. |
타입 파라미터
이름 | 설명 |
---|---|
TVersion | An enum identifying the version. |
TTarget | The type to migrate. |