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.
コード例 #1
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);
        }
コード例 #2
0
ファイル: SqlCeOfflineEntity.cs プロジェクト: rafek/SyncFx
 protected SqlCeOfflineEntity()
 {
     ServiceMetadata = new OfflineEntityMetadata();
 }
コード例 #3
0
ファイル: IOfflineEntity.cs プロジェクト: rafek/SyncFx
        /// <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;
        }