コード例 #1
0
 /// <summary>Append a key to the subspace key</summary>
 /// <typeparam name="TKey">type of the key, must implements IFdbKey</typeparam>
 /// <param name="key"></param>
 /// <returns>Return Slice : 'subspace.Key + key'</returns>
 public static Slice Concat <TKey>(this IFdbSubspace subspace, [NotNull] TKey key)
     where TKey : IFdbKey
 {
     if (key == null)
     {
         throw new ArgumentNullException("key");
     }
     return(Slice.Concat(subspace.ToFoundationDbKey(), key.ToFoundationDbKey()));
 }
コード例 #2
0
 /// <summary>Append a key to the subspace key</summary>
 public static Slice Concat(this IFdbSubspace subspace, Slice key)
 {
     return(Slice.Concat(subspace.ToFoundationDbKey(), key));
 }
コード例 #3
0
 /// <summary>Append a key to the subspace key</summary>
 /// <remarks>This is the equivalent of calling 'subspace.Key + key'</remarks>
 public Slice Concat(Slice key)
 {
     return(Slice.Concat(GetKeyPrefix(), key));
 }