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
- TextAdaptor.cs
- DWriteFactory.cs
- log.cs
- baseshape.cs
- StickyNoteAnnotations.cs
- XmlElementList.cs
- GridLengthConverter.cs
- SettingsPropertyValueCollection.cs
- MetaData.cs
- BooleanSwitch.cs
- Line.cs
- TypeInformation.cs
- Int16KeyFrameCollection.cs
- ListViewCommandEventArgs.cs
- QilTernary.cs
- WinInet.cs
- CalendarKeyboardHelper.cs
- DatagridviewDisplayedBandsData.cs
- DataSourceControl.cs
- NotificationContext.cs
- EntityModelBuildProvider.cs
- SqlInfoMessageEvent.cs
- PagedDataSource.cs
- CallTemplateAction.cs
- BitConverter.cs
- CorrelationKey.cs
- Padding.cs
- SmiEventSink.cs
- DataListItemCollection.cs
- MDIClient.cs
- TdsParserSafeHandles.cs
- NumberFunctions.cs
- FacetValues.cs
- ControlPaint.cs
- ClientConfigurationSystem.cs
- CollectionConverter.cs
- SpeechRecognitionEngine.cs
- GridViewHeaderRowPresenter.cs
- SHA512.cs
- DataGridItemEventArgs.cs
- WebBrowserContainer.cs
- ModulesEntry.cs
- ReadWriteObjectLock.cs
- DaylightTime.cs
- ResourceExpressionBuilder.cs
- DispatcherExceptionEventArgs.cs
- DBSchemaTable.cs
- FontWeights.cs
- PrimarySelectionAdorner.cs
- RuleSet.cs
- NoClickablePointException.cs
- AddInToken.cs
- PageAdapter.cs
- DateTimeOffsetConverter.cs
- NullReferenceException.cs
- SimpleType.cs
- CachedFontFace.cs
- ListenerElementsCollection.cs
- GeometryGroup.cs
- LayoutEvent.cs
- DeviceContexts.cs
- NavigationCommands.cs
- SmiRequestExecutor.cs
- dbenumerator.cs
- CalculatedColumn.cs
- SafeWaitHandle.cs
- PointConverter.cs
- EntityAdapter.cs
- RemotingHelper.cs
- CalendarModeChangedEventArgs.cs
- isolationinterop.cs
- TypeSystem.cs
- SqlCacheDependency.cs
- ControlEvent.cs
- MsmqOutputMessage.cs
- MobileUserControl.cs
- ResourceContainer.cs
- BCryptSafeHandles.cs
- WebPartAddingEventArgs.cs
- ObjectItemConventionAssemblyLoader.cs
- RecommendedAsConfigurableAttribute.cs
- TaskbarItemInfo.cs
- sqlstateclientmanager.cs
- UInt16Converter.cs
- SendMailErrorEventArgs.cs
- ScriptRegistrationManager.cs
- WebBrowserUriTypeConverter.cs
- TextEffect.cs
- VisualBasicValue.cs
- Point4D.cs
- SystemIPGlobalProperties.cs
- SpellerStatusTable.cs
- WaitHandle.cs
- EntityClientCacheEntry.cs
- ExpressionWriter.cs
- CellQuery.cs
- manifestimages.cs
- DateTime.cs
- ChannelEndpointElement.cs
- SoapClientMessage.cs