/// <summary>
        /// Used while creating Snapshot to do a depp copy of the original copy's metadata
        /// </summary>
        /// <returns></returns>
        internal OfflineEntityMetadata Clone()
        {
            var metaData = new OfflineEntityMetadata(
                _isTombstone,
                _id,
                _etag,
                _editUri);

            return(metaData);
        }
        /// <summary>
        /// Used while creating Snapshot to do a depp copy of the original copy's metadata
        /// </summary>
        /// <returns></returns>
        internal OfflineEntityMetadata Clone()
        {
            var metaData = new OfflineEntityMetadata(
                _isTombstone,
                _id,
                _etag,
                _editUri);

            return metaData;
        }
Example #3
0
 /// <summary>
 /// Protected constructor because class is private.  Initial state of created
 /// entities will be Detached.
 /// </summary>
 protected OfflineEntity()
 {
     this.state = OfflineEntityState.Detached;
     //this.syncInfo = new SyncErrorInfo();
     this.entityMetadata = new OfflineEntityMetadata();
 }
Example #4
0
 /// <summary>
 /// Sets the metadata for the entity and does any notification.
 /// The property setter asserts on whether or not the entity is attached, but this
 /// method does not
 /// </summary>
 /// <param name="metadata">Metadata to set</param>
 public void SetServiceMetadata(OfflineEntityMetadata metadata)
 {
     if (metadata != entityMetadata)
     {
         entityMetadata = metadata;
         RaisePropertyChanged("EntityMetadata");
     }
 }
Example #5
0
 public void SetServiceMetadata(OfflineEntityMetadata value)
 {
     ServiceMetadata = value;
 }