Ejemplo n.º 1
0
 public SqliteInnerQueryCommand(
     SQLiteCommand command,
     SqliteConnectionParameters.Values paramValues
     ) : base(command)
 {
     this._paramValues = paramValues;
 }
Ejemplo n.º 2
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 SqliteInnerQueryCommand(
				SQLiteCommand                     command,
				SqliteConnectionParameters.Values paramValues
			) : base(command)
			{
				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;
		}