Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / Epm / EpmAttributeNameBuilder.cs / 1305376 / EpmAttributeNameBuilder.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Provides names for attributes in csdl file // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Common { ////// Build attribute names corresponding to ones in csdl file /// internal sealed class EpmAttributeNameBuilder { ///Current index private int index; ///PostFix for current attribute names private String postFix; ///Constructor internal EpmAttributeNameBuilder() { this.postFix = String.Empty; } ///KeepInContent internal String EpmKeepInContent { get { return XmlConstants.MetadataAttributeEpmKeepInContent + this.postFix; } } ///SourcePath internal String EpmSourcePath { get { return XmlConstants.MetadataAttributeEpmSourcePath + this.postFix; } } ///Target Path internal String EpmTargetPath { get { return XmlConstants.MetadataAttributeEpmTargetPath + this.postFix; } } ///ContentKind internal String EpmContentKind { get { return XmlConstants.MetadataAttributeEpmContentKind + this.postFix; } } ///Namespace Prefix internal String EpmNsPrefix { get { return XmlConstants.MetadataAttributeEpmNsPrefix + this.postFix; } } ///Namespace Uri internal String EpmNsUri { get { return XmlConstants.MetadataAttributeEpmNsUri + this.postFix; } } ///Move to next attribute name generation internal void MoveNext() { this.index++; this.postFix = "_" + this.index.ToString(System.Globalization.CultureInfo.InvariantCulture); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Provides names for attributes in csdl file // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Common { ////// Build attribute names corresponding to ones in csdl file /// internal sealed class EpmAttributeNameBuilder { ///Current index private int index; ///PostFix for current attribute names private String postFix; ///Constructor internal EpmAttributeNameBuilder() { this.postFix = String.Empty; } ///KeepInContent internal String EpmKeepInContent { get { return XmlConstants.MetadataAttributeEpmKeepInContent + this.postFix; } } ///SourcePath internal String EpmSourcePath { get { return XmlConstants.MetadataAttributeEpmSourcePath + this.postFix; } } ///Target Path internal String EpmTargetPath { get { return XmlConstants.MetadataAttributeEpmTargetPath + this.postFix; } } ///ContentKind internal String EpmContentKind { get { return XmlConstants.MetadataAttributeEpmContentKind + this.postFix; } } ///Namespace Prefix internal String EpmNsPrefix { get { return XmlConstants.MetadataAttributeEpmNsPrefix + this.postFix; } } ///Namespace Uri internal String EpmNsUri { get { return XmlConstants.MetadataAttributeEpmNsUri + this.postFix; } } ///Move to next attribute name generation internal void MoveNext() { this.index++; this.postFix = "_" + this.index.ToString(System.Globalization.CultureInfo.InvariantCulture); } } } // 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
- CodeDirectiveCollection.cs
- CustomCategoryAttribute.cs
- CellLabel.cs
- TreeNodeEventArgs.cs
- DesignerAutoFormatCollection.cs
- MessageQueueConverter.cs
- FixedElement.cs
- LockingPersistenceProvider.cs
- IPHostEntry.cs
- DataViewSetting.cs
- DateTimeUtil.cs
- XPathNodeHelper.cs
- DbCommandTree.cs
- FloatSumAggregationOperator.cs
- RuntimeComponentFilter.cs
- HttpHandlerActionCollection.cs
- TextServicesCompartmentContext.cs
- SqlXmlStorage.cs
- XmlDocumentSerializer.cs
- TextTreeTextNode.cs
- ACE.cs
- StylusPoint.cs
- InternalBufferOverflowException.cs
- FrameworkContentElementAutomationPeer.cs
- BackgroundWorker.cs
- FigureHelper.cs
- ValueUtilsSmi.cs
- Column.cs
- ValidatedControlConverter.cs
- NamespaceDisplay.xaml.cs
- FileLoadException.cs
- ContentFilePart.cs
- glyphs.cs
- Vector3DAnimation.cs
- AngleUtil.cs
- Context.cs
- WebPartCloseVerb.cs
- PerformanceCounterCategory.cs
- SqlAliaser.cs
- CrossContextChannel.cs
- EntityUtil.cs
- CodeGeneratorOptions.cs
- ISCIIEncoding.cs
- DataGridViewCellCollection.cs
- ToolTip.cs
- SyndicationSerializer.cs
- CodeCastExpression.cs
- UnsafeNativeMethods.cs
- EntitySqlQueryState.cs
- DbConnectionClosed.cs
- UrlMappingsModule.cs
- ProtocolElement.cs
- WindowsListViewItemCheckBox.cs
- UrlAuthFailedErrorFormatter.cs
- VerticalAlignConverter.cs
- TableLayoutStyle.cs
- EncryptedData.cs
- LineGeometry.cs
- PermissionSetTriple.cs
- MasterPage.cs
- OleDbSchemaGuid.cs
- RawMouseInputReport.cs
- FileDataSourceCache.cs
- TypeConverterAttribute.cs
- InstanceDataCollection.cs
- AutoGeneratedField.cs
- Mapping.cs
- XmlQueryContext.cs
- RoutedEventArgs.cs
- Point4D.cs
- ValidatorCompatibilityHelper.cs
- KeyNotFoundException.cs
- LineBreak.cs
- DbConnectionInternal.cs
- HandleRef.cs
- ScriptResourceHandler.cs
- SQLByteStorage.cs
- CustomErrorsSection.cs
- GenerateHelper.cs
- IndexedEnumerable.cs
- DataGridTableCollection.cs
- InvalidOperationException.cs
- WhiteSpaceTrimStringConverter.cs
- RightsManagementEncryptedStream.cs
- DataBindingList.cs
- QueryFunctions.cs
- QilPatternFactory.cs
- ElementAction.cs
- NumberSubstitution.cs
- ValidatedControlConverter.cs
- VerificationAttribute.cs
- SoapObjectInfo.cs
- ToolBarTray.cs
- PropertyMetadata.cs
- ButtonChrome.cs
- ToolStripContainer.cs
- RangeBase.cs
- SoapTypeAttribute.cs
- GraphicsContext.cs
- AsyncResult.cs