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