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)); }
public static byte[] GetBinary(this SharpDBConnection connection, byte[] documentIdBytes) { return(connection.GetInternal(documentIdBytes)); }