Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / Epm / EpmContentDeSerializerBase.cs / 1305376 / EpmContentDeSerializerBase.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Base Class used for EntityPropertyMappingAttribute related content // deserializers // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Common { #region Namespaces using System.ServiceModel.Syndication; #endregion ////// Base EPM deserializer class /// internal abstract class EpmContentDeSerializerBase { ///private readonly SyndicationItem item; /// from which to read EPM content Deserializer state private readonly EpmContentDeSerializer.EpmContentDeserializerState state; ///Constructor ///from which to read EPM content /// State of the deserializer internal EpmContentDeSerializerBase(SyndicationItem item, EpmContentDeSerializer.EpmContentDeserializerState state) { this.item = item; this.state = state; } /// Object update interface internal UpdatableWrapper Updatable { get { return this.state.Updatable; } } ///Are we deserializing for an update operation internal bool IsUpdateOperation { get { return this.state.IsUpdateOperation; } } ///Current service instance internal IDataService Service { get { return this.state.Service; } } ///Current service instance internal EpmContentDeSerializer.EpmAppliedPropertyInfo PropertiesApplied { get { return this.state.PropertiesApplied; } } ///SyndicationItem to read EPM content from protected SyndicationItem Item { get { return this.item; } } ////// Matches the targetSegment with properties already applied and if finds something already applied considers it a match /// /// Target segment for which existing property application is checked for /// Properties already applied based on content ///true if already the property for the current segment has been applied internal static bool Match(EpmTargetPathSegment targetSegment, EpmContentDeSerializer.EpmAppliedPropertyInfo propertiesApplied) { if (!targetSegment.EpmInfo.Attribute.KeepInContent) { return propertiesApplied.Lookup(targetSegment.EpmInfo.Attribute.SourcePath); } else { return true; } } } } // 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
- AttributeConverter.cs
- CustomValidator.cs
- XamlVector3DCollectionSerializer.cs
- ChildTable.cs
- Rotation3D.cs
- SymbolEqualComparer.cs
- NameSpaceEvent.cs
- ExpressionVisitorHelpers.cs
- GenericTypeParameterBuilder.cs
- Type.cs
- XmlWhitespace.cs
- DataListItemCollection.cs
- HttpCapabilitiesEvaluator.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- RuntimeIdentifierPropertyAttribute.cs
- SafeLibraryHandle.cs
- FilterElement.cs
- EntityDataSourceChangingEventArgs.cs
- CodeTypeReferenceExpression.cs
- PropertyEntry.cs
- SqlDataSourceWizardForm.cs
- WebResourceAttribute.cs
- StructuredTypeEmitter.cs
- SurrogateSelector.cs
- ParallelDesigner.cs
- SchemaElementDecl.cs
- ServicePointManagerElement.cs
- CodeParameterDeclarationExpression.cs
- InvalidDataContractException.cs
- ClientBuildManagerCallback.cs
- ConfigXmlAttribute.cs
- NativeWindow.cs
- PrimitiveType.cs
- ZipArchive.cs
- GeometryCollection.cs
- ValidationRule.cs
- ClipboardData.cs
- ComboBox.cs
- Util.cs
- StoreConnection.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- PerformanceCounterPermissionEntryCollection.cs
- NumberAction.cs
- GenericIdentity.cs
- BitmapImage.cs
- DesignerAutoFormatCollection.cs
- StorageMappingFragment.cs
- ServiceBehaviorElement.cs
- HtmlInputSubmit.cs
- ProtectedConfiguration.cs
- PagedDataSource.cs
- InputLanguageManager.cs
- ImageAttributes.cs
- Scene3D.cs
- HtmlHead.cs
- CqlBlock.cs
- StickyNoteContentControl.cs
- NamespaceCollection.cs
- CodeDelegateCreateExpression.cs
- SqlProfileProvider.cs
- PointLightBase.cs
- KnownBoxes.cs
- RegexWriter.cs
- CompositeCollectionView.cs
- MouseGesture.cs
- UnsupportedPolicyOptionsException.cs
- WindowsTitleBar.cs
- TraceData.cs
- GeneralTransform3DGroup.cs
- ColumnResizeUndoUnit.cs
- EntityDataSourceColumn.cs
- XmlEnumAttribute.cs
- PriorityItem.cs
- RC2.cs
- GeometryGroup.cs
- SettingsContext.cs
- WebMessageEncoderFactory.cs
- Normalization.cs
- TypeConverter.cs
- LeafCellTreeNode.cs
- TextPatternIdentifiers.cs
- SecurityElement.cs
- MetadataItem_Static.cs
- ParameterEditorUserControl.cs
- TraceHandler.cs
- Base64Decoder.cs
- ExtentKey.cs
- ConvertEvent.cs
- ToolStripItemCollection.cs
- AmbientLight.cs
- FixedFlowMap.cs
- StopStoryboard.cs
- DbProviderFactories.cs
- PrintPageEvent.cs
- StructuralObject.cs
- SequentialOutput.cs
- InfiniteIntConverter.cs
- SQlBooleanStorage.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- DoubleKeyFrameCollection.cs