public UpgradeExecutingEventArgs(IProgressProcessRunner process) { if (process == null) { throw new ArgumentNullException("process"); } _process = process; }
private void OnUpgradeExecuting(IProgressProcessRunner process) { if (process == null) { return; } var handler = UpgradeExecuting; if (handler != null) { handler(this, new UpgradeExecutingEventArgs(process)); } else { process.Process(); } if (process.Exception != null) { throw new DataException("Database upgrade failed.", process.Exception); } }
public UpgradeExecutingEventArgs(IProgressProcessRunner process) { if (process == null) throw new ArgumentNullException("process"); _process = process; }
private void OnUpgradeExecuting(IProgressProcessRunner process) { if (process == null) return; var handler = UpgradeExecuting; if (handler != null) { handler(this, new UpgradeExecutingEventArgs(process)); } else { process.Process(); } if (process.Exception != null) { throw new DataException("Database upgrade failed.", process.Exception); } }