Class MigrationEventArgs
Inheritance
System.Object
Assembly: cs.temp.dll.dll
Syntax
public class MigrationEventArgs : CancellableObjectEventArgs<IList<Type>>, IEquatable<MigrationEventArgs>
Constructors
MigrationEventArgs(IList<Type>, SemVersion, SemVersion, String)
Declaration
public MigrationEventArgs(IList<Type> migrationTypes, SemVersion configuredVersion, SemVersion targetVersion, string productName)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<System.Type> |
migrationTypes |
|
SemVersion |
configuredVersion |
|
SemVersion |
targetVersion |
|
System.String |
productName |
|
MigrationEventArgs(IList<Type>, SemVersion, SemVersion, String, Boolean)
Declaration
public MigrationEventArgs(IList<Type> migrationTypes, SemVersion configuredVersion, SemVersion targetVersion, string productName, bool canCancel)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<System.Type> |
migrationTypes |
|
SemVersion |
configuredVersion |
|
SemVersion |
targetVersion |
|
System.String |
productName |
|
System.Boolean |
canCancel |
|
Properties
Gets the origin version of the migration, i.e. the one that is currently installed.
Declaration
public SemVersion ConfiguredSemVersion { get; }
Property Value
Type |
Description |
SemVersion |
|
MigrationsTypes
Returns all migrations that were used in the migration runner
Declaration
public IList<Type> MigrationsTypes { get; }
Property Value
Type |
Description |
System.Collections.Generic.IList<System.Type> |
|
ProductName
Declaration
public string ProductName { get; }
Property Value
Type |
Description |
System.String |
|
TargetSemVersion
Gets the target version of the migration.
Declaration
public SemVersion TargetSemVersion { get; }
Property Value
Type |
Description |
SemVersion |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(MigrationEventArgs)
Declaration
public bool Equals(MigrationEventArgs other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Operators
Equality(MigrationEventArgs, MigrationEventArgs)
Declaration
public static bool operator ==(MigrationEventArgs left, MigrationEventArgs right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(MigrationEventArgs, MigrationEventArgs)
Declaration
public static bool operator !=(MigrationEventArgs left, MigrationEventArgs right)
Parameters
Returns
Type |
Description |
System.Boolean |
|