24 lines
773 B
C#
24 lines
773 B
C#
using System;
|
|
|
|
namespace DbTools.EventArguments {
|
|
public delegate void MigrationProgressEventHandler(object sender, MigrationProgressEventArgs e);
|
|
|
|
public class MigrationProgressEventArgs : EventArgs {
|
|
public string StatusText { get; set; }
|
|
public int Total { get; set; }
|
|
public int Pending { get; set; }
|
|
public int Successful { get; set; }
|
|
public int Failed { get; set; }
|
|
|
|
public MigrationProgressEventArgs() { }
|
|
|
|
public MigrationProgressEventArgs(int total, int pending, int successful, int failed, string statusText = "") {
|
|
Total = total;
|
|
Pending = pending;
|
|
Successful = successful;
|
|
Failed = failed;
|
|
StatusText = statusText;
|
|
}
|
|
}
|
|
}
|