Class that represents the metadata required for the sync protocol to work correctly. Applications should not change these properties except when required by the protocol (the Id will change for an item that is inserted for the first time). The exception to this is the IsTombstone property, which should be set when the application is using a custom store and an item is being deleted. Applications using the IsolatedStorageOfflineContext should never set any properties.
        /// <summary>
        /// Used while creating Snapshot to do a depp copy of the original copy's metadata
        /// </summary>
        /// <returns></returns>
        internal OfflineEntityMetadata Clone()
        {
            OfflineEntityMetadata metaData = new OfflineEntityMetadata(
                _isTombstone,
                _id,
                _etag,
                _editUri);

            return(metaData);
        }
Esempio n. 2
0
 protected SqlCeOfflineEntity()
 {
     ServiceMetadata = new OfflineEntityMetadata();
 }
Esempio n. 3
0
        /// <summary>
        /// Used while creating Snapshot to do a depp copy of the original copy's metadata
        /// </summary>
        /// <returns></returns>
        internal OfflineEntityMetadata Clone()
        {
            OfflineEntityMetadata metaData = new OfflineEntityMetadata(
                _isTombstone,
                _id,
                _etag,
                _editUri);

            return metaData;
        }