Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / Descriptor.cs / 1305376 / Descriptor.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// represents the response object - either entity or link // //--------------------------------------------------------------------- namespace System.Data.Services.Client { ////// represents the response object - either entity or link /// public abstract class Descriptor { #region Fields ///change order private uint changeOrder = UInt32.MaxValue; ///was content generated for the entity private bool saveContentGenerated; ///was this entity save result processed ///0 - no processed, otherwise reflects the previous state private EntityStates saveResultProcessed; ///last save exception per entry private Exception saveError; ///State of the modified entity or link. private EntityStates state; #endregion ////// constructor /// /// entity state internal Descriptor(EntityStates state) { this.state = state; } #region Public Properties ///returns the state of the entity or link object in response. public EntityStates State { get { return this.state; } internal set { this.state = value; } } #endregion #region Internal Properties ///true if resource, false if link internal abstract bool IsResource { get; } ///changeOrder internal uint ChangeOrder { get { return this.changeOrder; } set { this.changeOrder = value; } } ///was content generated for the entity internal bool ContentGeneratedForSave { get { return this.saveContentGenerated; } set { this.saveContentGenerated = value; } } ///was this entity save result processed internal EntityStates SaveResultWasProcessed { get { return this.saveResultProcessed; } set { this.saveResultProcessed = value; } } ///last save exception per entry internal Exception SaveError { get { return this.saveError; } set { this.saveError = value; } } ////// Returns true if the entry has been modified (and thus should participate in SaveChanges). /// internal virtual bool IsModified { get { System.Diagnostics.Debug.Assert( (EntityStates.Added == this.state) || (EntityStates.Modified == this.state) || (EntityStates.Unchanged == this.state) || (EntityStates.Deleted == this.state), "entity state is not valid"); return (EntityStates.Unchanged != this.state); } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// represents the response object - either entity or link // //--------------------------------------------------------------------- namespace System.Data.Services.Client { ////// represents the response object - either entity or link /// public abstract class Descriptor { #region Fields ///change order private uint changeOrder = UInt32.MaxValue; ///was content generated for the entity private bool saveContentGenerated; ///was this entity save result processed ///0 - no processed, otherwise reflects the previous state private EntityStates saveResultProcessed; ///last save exception per entry private Exception saveError; ///State of the modified entity or link. private EntityStates state; #endregion ////// constructor /// /// entity state internal Descriptor(EntityStates state) { this.state = state; } #region Public Properties ///returns the state of the entity or link object in response. public EntityStates State { get { return this.state; } internal set { this.state = value; } } #endregion #region Internal Properties ///true if resource, false if link internal abstract bool IsResource { get; } ///changeOrder internal uint ChangeOrder { get { return this.changeOrder; } set { this.changeOrder = value; } } ///was content generated for the entity internal bool ContentGeneratedForSave { get { return this.saveContentGenerated; } set { this.saveContentGenerated = value; } } ///was this entity save result processed internal EntityStates SaveResultWasProcessed { get { return this.saveResultProcessed; } set { this.saveResultProcessed = value; } } ///last save exception per entry internal Exception SaveError { get { return this.saveError; } set { this.saveError = value; } } ////// Returns true if the entry has been modified (and thus should participate in SaveChanges). /// internal virtual bool IsModified { get { System.Diagnostics.Debug.Assert( (EntityStates.Added == this.state) || (EntityStates.Modified == this.state) || (EntityStates.Unchanged == this.state) || (EntityStates.Deleted == this.state), "entity state is not valid"); return (EntityStates.Unchanged != this.state); } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjRef.cs
- PrintControllerWithStatusDialog.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- AccessViolationException.cs
- EnterpriseServicesHelper.cs
- IPEndPoint.cs
- SetStoryboardSpeedRatio.cs
- StringSource.cs
- MembershipPasswordException.cs
- DataGridRowsPresenter.cs
- SchemaTypeEmitter.cs
- HandlerFactoryWrapper.cs
- MatrixAnimationUsingPath.cs
- HashRepartitionStream.cs
- ToolStripDesigner.cs
- GlyphInfoList.cs
- GenericRootAutomationPeer.cs
- Interfaces.cs
- OledbConnectionStringbuilder.cs
- WebPartConnectVerb.cs
- PropertyPathConverter.cs
- DiscreteKeyFrames.cs
- SourceFileInfo.cs
- FileLogRecordStream.cs
- TreeView.cs
- JsonFormatReaderGenerator.cs
- SrgsElementFactoryCompiler.cs
- TypeUsage.cs
- InputReportEventArgs.cs
- EntitySetBaseCollection.cs
- SQLChars.cs
- JavaScriptSerializer.cs
- CircleHotSpot.cs
- WebBrowsableAttribute.cs
- figurelength.cs
- ValidationException.cs
- DateTimeUtil.cs
- StringArrayConverter.cs
- PackageProperties.cs
- ByteFacetDescriptionElement.cs
- LogRecordSequence.cs
- PresentationAppDomainManager.cs
- PeerObject.cs
- relpropertyhelper.cs
- PeerDuplexChannelListener.cs
- FontConverter.cs
- SmtpNtlmAuthenticationModule.cs
- InterleavedZipPartStream.cs
- DataGridViewRowCollection.cs
- WeakReferenceKey.cs
- PointLightBase.cs
- XamlRtfConverter.cs
- ScrollItemPattern.cs
- WebBrowsableAttribute.cs
- CancellationHandlerDesigner.cs
- CSharpCodeProvider.cs
- ColorEditor.cs
- SelectQueryOperator.cs
- EventEntry.cs
- WebBrowserNavigatingEventHandler.cs
- FigureParaClient.cs
- MultipleViewPattern.cs
- PersonalizablePropertyEntry.cs
- CachedPathData.cs
- FacetChecker.cs
- OptionalMessageQuery.cs
- PropertyConverter.cs
- BezierSegment.cs
- OleDbError.cs
- DelegatingConfigHost.cs
- GenericRootAutomationPeer.cs
- RectIndependentAnimationStorage.cs
- PropertyConverter.cs
- FormsAuthenticationConfiguration.cs
- OdbcConnectionPoolProviderInfo.cs
- Attributes.cs
- WorkflowMarkupSerializationException.cs
- DataGridViewCellStyleConverter.cs
- Sequence.cs
- AttributeXamlType.cs
- SystemColors.cs
- Span.cs
- WindowsGraphicsWrapper.cs
- RemoteX509AsymmetricSecurityKey.cs
- UpdateProgress.cs
- MsmqIntegrationProcessProtocolHandler.cs
- bidPrivateBase.cs
- ListControl.cs
- ServiceObjectContainer.cs
- TemplatedAdorner.cs
- CreateParams.cs
- SortAction.cs
- IxmlLineInfo.cs
- EntityRecordInfo.cs
- HostingPreferredMapPath.cs
- OdbcEnvironmentHandle.cs
- HeaderPanel.cs
- IteratorDescriptor.cs
- TypeExtension.cs
- SpecialFolderEnumConverter.cs