Example #1
0
 /// <summary>
 /// 使用连接字符串初始化 <see cref="ConnectionString"/> 类的新实例。
 /// </summary>
 /// <param name="connectionString">数据库连接字符串。</param>
 /// <exception cref="ArgumentNullException">connectionString 为 null。</exception>
 public ConnectionString(string connectionString)
 {
     Guard.ArgumentNull(connectionString, nameof(connectionString));
     Properties            = new ConnectionProperties();
     this.connectionString = ParseConnectionString(connectionString);
 }