Ejemplo n.º 1
0
        public SqliteInnerQueryConnection(
            CurrentStorage currentStorage,
            SqliteConnectionParameters connectionParameters
            ) : base(
                ConnectionFactory.CreateSQLiteConnection(currentStorage.FileName, true)
                )
        {
            SqliteConnectionParameters.Values paramValues =
                connectionParameters.Resolve(currentStorage);

            if (paramValues == null)
            {
                const string errorMessage = "Can not resolve SQLite internal connection parameters";

                Log.Error(errorMessage);

                throw new ArgumentException(errorMessage, "connectionParameters");
            }

            this._paramValues = paramValues;
        }
		public SqliteInnerQueryConnection(
			CurrentStorage             currentStorage,
			SqliteConnectionParameters connectionParameters
		) : base(
				ConnectionFactory.CreateSQLiteConnection(currentStorage.FileName, true)
			)
		{
			SqliteConnectionParameters.Values paramValues =
				connectionParameters.Resolve(currentStorage);

			if (paramValues == null)
			{
				const string errorMessage = "Can not resolve SQLite internal connection parameters";

				Log.Error(errorMessage);

				throw new ArgumentException(errorMessage, "connectionParameters");
			}

			this._paramValues = paramValues;
		}