diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-02-17 17:25:57 +0000 |
---|---|---|
committer | <> | 2015-03-17 16:26:24 +0000 |
commit | 780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch) | |
tree | 598f8b9fa431b228d29897e798de4ac0c1d3d970 /lang/csharp/src/DatabaseEntry.cs | |
parent | 7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff) | |
download | berkeleydb-master.tar.gz |
Diffstat (limited to 'lang/csharp/src/DatabaseEntry.cs')
-rw-r--r-- | lang/csharp/src/DatabaseEntry.cs | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/lang/csharp/src/DatabaseEntry.cs b/lang/csharp/src/DatabaseEntry.cs index 4c8f4324..38bcef1a 100644 --- a/lang/csharp/src/DatabaseEntry.cs +++ b/lang/csharp/src/DatabaseEntry.cs @@ -1,7 +1,7 @@ /*- * See the file LICENSE for redistribution information. * - * Copyright (c) 2009, 2012 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2015 Oracle and/or its affiliates. All rights reserved. * */ using System; @@ -116,10 +116,24 @@ namespace BerkeleyDB { } } - /// <summary> - /// Set this DatabaseEntry as read only - that is Berkeley DB will not - /// alter the entry. - /// </summary> + /// <summary> + /// Whether the record data will be stored as a blob, + /// regardless of size. + /// </summary> + public bool Blob { + get { return (dbt.flags & DbConstants.DB_DBT_BLOB) != 0; } + set { + if (value == true) + dbt.flags |= DbConstants.DB_DBT_BLOB; + else + dbt.flags &= ~DbConstants.DB_DBT_BLOB; + } + } + + /// <summary> + /// Set this DatabaseEntry as read only - Berkeley DB cannot + /// alter the entry. + /// </summary> public bool ReadOnly { get { return (flags & DbConstants.DB_DBT_READONLY) != 0; } set { |