Beispiel #1
0
        public static DocumentConflict From(JsonOperationContext ctx, Document doc)
        {
            if (doc == null)
            {
                return(null);
            }

            return(new DocumentConflict
            {
                LowerId = doc.LowerId,
                Id = doc.Id,
                Doc = doc.Data,
                StorageId = doc.StorageId,
                ChangeVector = doc.ChangeVector,
                LastModified = doc.LastModified,
                Collection = ctx.GetLazyStringForFieldWithCaching(CollectionName.GetCollectionName(doc.Data))
            });
        }
Beispiel #2
0
        private static bool IsHiLoDocument(Document document)
        {
            var collection = CollectionName.GetCollectionName(document.Data);

            return(CollectionName.IsHiLoCollection(collection));
        }