public static GetResolvedConnectionString ( string connectionString ) : string | ||
connectionString | string | |
Результат | string |
/// <summary> /// Initializes a new instance of the <see cref="SQLiteErrorLog"/> class /// to use a specific connection string for connecting to the database. /// </summary> public SQLiteErrorLog(string connectionString) { if (connectionString == null) throw new ArgumentNullException("connectionString"); if (connectionString.Length == 0) throw new ArgumentException(null, "connectionString"); _connectionString = ConnectionStringHelper.GetResolvedConnectionString(connectionString); InitializeDatabase(); }
/// <summary> /// Initializes a new instance of the <see cref="SqlServerCompactErrorLog"/> class /// to use a specific connection string for connecting to the database. /// </summary> public SqlServerCompactErrorLog(string connectionString) { if (connectionString == null) { throw new ArgumentNullException("connectionString"); } if (connectionString.Length == 0) { throw new ArgumentException(null, "connectionString"); } _connectionString = ConnectionStringHelper.GetResolvedConnectionString(connectionString); InitializeDatabase(); }