Exemple #1
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>
 internal void SetServiceMetadata(OfflineEntityMetadata metadata)
 {
     if (metadata != _entityMetadata)
     {
         _entityMetadata = metadata;
     }
 }
 /// <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>
 internal void SetServiceMetadata(OfflineEntityMetadata metadata)
 {
     if (metadata != _entityMetadata)
     {
         _entityMetadata = metadata;
         RaisePropertyChanged("EntityMetadata");
     }
 }
Exemple #3
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");
     }
 }
Exemple #4
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);
        }
 /// <summary>
 /// Protected constructor because class is private.  Initial state of created
 /// entities will be Detached.
 /// </summary>
 protected IsolatedStorageOfflineEntity()
 {
     _state = OfflineEntityState.Detached;
     _entityMetadata = new OfflineEntityMetadata();
     isNew = true;
 }
 /// <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>
 internal void SetServiceMetadata(OfflineEntityMetadata metadata)
 {
     if (metadata != _entityMetadata)
     {
         _entityMetadata = metadata;
     }
 }
 public void SetServiceMetadata(OfflineEntityMetadata value)
 {
     ServiceMetadata = value;
 }
Exemple #8
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();
 }
 protected SqlCeOfflineEntity()
 {
     ServiceMetadata = new OfflineEntityMetadata();
 }
        /// <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;
        }
 /// <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>
 internal void SetServiceMetadata(OfflineEntityMetadata metadata)
 {
     if (metadata != _entityMetadata)
     {
         _entityMetadata = metadata;
         RaisePropertyChanged("EntityMetadata");
     }
 }
Exemple #12
0
 /// <summary>
 /// Protected constructor because class is private.  Initial state of created
 /// entities will be Detached.
 /// </summary>
 protected IsolatedStorageOfflineEntity()
 {
     _state          = OfflineEntityState.Detached;
     _entityMetadata = new OfflineEntityMetadata();
     isNew           = true;
 }