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