Пример #1
0
        public SQLiteBlob(SQLiteDatabase database, IntPtr handle, string tableName, string columnName, long rowId, SQLiteBlobOpenMode mode)
        {
            if (database == null)
            {
                throw new ArgumentNullException(null, nameof(database));
            }

            if (handle == IntPtr.Zero)
            {
                throw new ArgumentException(null, nameof(handle));
            }

            if (tableName == null)
            {
                throw new ArgumentNullException(null, nameof(tableName));
            }

            if (columnName == null)
            {
                throw new ArgumentNullException(null, nameof(columnName));
            }

            Database   = database;
            _handle    = handle;
            TableName  = tableName;
            ColumnName = columnName;
            RowId      = rowId;
            Mode       = mode;
        }
Пример #2
0
 public SQLiteBlob OpenBlob(string columnName, long rowId, SQLiteBlobOpenMode mode) => Database.OpenBlob(Name, columnName, rowId, mode);