/// <summary> /// Initializes a new instance of the <see cref="DataSource"/> class. /// </summary> /// <param name="settings">Optional settings object.</param> protected DataSource(DataSourceSettings settings) { if (settings != null) { DefaultCommandTimeout = settings.DefaultCommandTimeout; StrictMode = settings.StrictMode ?? false; SuppressGlobalEvents = settings.SuppressGlobalEvents ?? false; } }
/// <summary> /// Initializes a new instance of the <see cref="DataSource{TConnection, TTransaction,TCommand, TParameter}"/> class. /// </summary> /// <param name="settings">Optional settings object.</param> protected DataSource(DataSourceSettings settings) : base(settings) { }