Class MigrationStageExtensions
Extension methods for migration stages.
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Migrations
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public static class MigrationStageExtensions
Methods
| Edit this page View SourceFromDataModelString(string)
Convert a string value into a stage.
Declaration
public static MigrationStage? FromDataModelString(string stringStage)
Parameters
Type | Name | Description |
---|---|---|
string | stringStage |
Returns
Type | Description |
---|---|
MigrationStage? | a migration stage, or null if it cannot be converted |
ToDataModelString(MigrationStage)
Get a string value for a stage.
Declaration
public static string ToDataModelString(this MigrationStage stage)
Parameters
Type | Name | Description |
---|---|---|
MigrationStage | stage | the stage to get a string value for |
Returns
Type | Description |
---|---|
string | a string for the migration stage |
Remarks
This is a string value that matches that in the data model.