This class is used to modify settings that are not represented by the connection string.
コード例 #1
0
ファイル: DataSource.cs プロジェクト: xinqinglhj/Chain
 /// <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;
     }
 }
コード例 #2
0
 /// <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)
 {
 }