Class CompatibilityModeExtension
Extension methods for CompatibilityMode
Inherited Members
Namespace: FluentMigrator.Runner.Generators
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public static class CompatibilityModeExtension
Methods
| Edit this page View SourceHandleCompatibilty(CompatibilityMode, string)
Handles unsupported generator features according to a compatibility mode.
Declaration
public static string HandleCompatibilty(this CompatibilityMode mode, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| CompatibilityMode | mode | The compatibility modee |
| string | message | The exception message (if any gets thrown) |
Returns
| Type | Description |
|---|---|
| string | The string to be returned (if no exception was thrown) |
Exceptions
| Type | Condition |
|---|---|
| DatabaseOperationNotSupportedException | The exception to be thrown |