public DbDiffChangeLoggerContext(DbDiffOptions opts, ILogger logger, DbDiffOptsLogger ltype) { m_opts = opts; m_ltype = ltype; m_oldValue = m_opts.DiffLogger; m_opts.SetLogger(m_ltype, logger); }
public DbDiffChangeLoggerContext(DbDiffOptions opts, IMessageLogger logger, DbDiffOptsLogger ltype) { m_opts = opts; m_ltype = ltype; m_oldValue = m_opts.DiffLogger; m_opts.SetLogger(m_ltype, logger); }
internal void SetLogger(DbDiffOptsLogger ltype, ILogger logger) { if (ltype == DbDiffOptsLogger.DiffLogger) { DiffLogger = logger; } if (ltype == DbDiffOptsLogger.AlterLogger) { AlterLogger = logger; } }
internal void SetLogger(DbDiffOptsLogger ltype, IMessageLogger logger) { if (ltype == DbDiffOptsLogger.DiffLogger) DiffLogger = logger; if (ltype == DbDiffOptsLogger.AlterLogger) AlterLogger = logger; }