Exemple #1
0
        public static JObject GetJObject(this SharpDBConnection connection, object documentId)
        {
            byte[] documentIdBytes = connection.Serializer.SerializeDocumentId(documentId);

            BsonSerializer serializer = connection.Serializer as BsonSerializer;

            byte[] blob = connection.GetInternal(documentIdBytes);

            return(serializer.DeserializeToJObject(blob));
        }
Exemple #2
0
 public static byte[] GetBinary(this SharpDBConnection connection, byte[] documentIdBytes)
 {
     return(connection.GetInternal(documentIdBytes));
 }