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
- EdmComplexPropertyAttribute.cs
- IndentTextWriter.cs
- SerializableAttribute.cs
- NativeMethods.cs
- StorageScalarPropertyMapping.cs
- TraceUtils.cs
- EdmSchemaError.cs
- ProxyHwnd.cs
- StandardTransformFactory.cs
- DesignTimeVisibleAttribute.cs
- DataChangedEventManager.cs
- StringKeyFrameCollection.cs
- ZoneIdentityPermission.cs
- CompensationDesigner.cs
- ScrollPatternIdentifiers.cs
- GridLengthConverter.cs
- SingleAnimationBase.cs
- FilterableAttribute.cs
- AnnotationResource.cs
- DesignerVerb.cs
- KerberosRequestorSecurityToken.cs
- KeyTime.cs
- DiscardableAttribute.cs
- SqlTopReducer.cs
- GlyphElement.cs
- TransformProviderWrapper.cs
- SimpleTypeResolver.cs
- NamespaceQuery.cs
- ResXResourceWriter.cs
- GeneralTransform3D.cs
- TextBox.cs
- ErrorBehavior.cs
- ReliableReplySessionChannel.cs
- KeyValueInternalCollection.cs
- OleDbConnection.cs
- DocumentSequence.cs
- MSAAWinEventWrap.cs
- ContainerTracking.cs
- CellPartitioner.cs
- ToolStripManager.cs
- InputProcessorProfilesLoader.cs
- ConsoleCancelEventArgs.cs
- IndicCharClassifier.cs
- TcpTransportManager.cs
- NamespaceMapping.cs
- TypeLibConverter.cs
- FileSecurity.cs
- ZipIOExtraField.cs
- CompareValidator.cs
- ListViewTableRow.cs
- Command.cs
- TextPattern.cs
- DependencyPropertyValueSerializer.cs
- ConfigXmlWhitespace.cs
- FixedFlowMap.cs
- DatatypeImplementation.cs
- DataGridPreparingCellForEditEventArgs.cs
- _NegoState.cs
- BaseTemplateBuildProvider.cs
- XmlSortKey.cs
- DrawItemEvent.cs
- SecuritySessionSecurityTokenProvider.cs
- UnsafeNativeMethods.cs
- PassportPrincipal.cs
- ConnectionStringEditor.cs
- StrokeCollection.cs
- XmlSiteMapProvider.cs
- HttpApplicationFactory.cs
- ObjectDataSourceFilteringEventArgs.cs
- TextRangeBase.cs
- _SpnDictionary.cs
- InputDevice.cs
- _NTAuthentication.cs
- ColorPalette.cs
- SemaphoreSecurity.cs
- RectIndependentAnimationStorage.cs
- TypeBuilder.cs
- HTMLTextWriter.cs
- LayoutInformation.cs
- StateWorkerRequest.cs
- httpstaticobjectscollection.cs
- ProviderConnectionPointCollection.cs
- ProfileSettingsCollection.cs
- DBCommand.cs
- validation.cs
- InProcStateClientManager.cs
- AccessViolationException.cs
- RemotingConfiguration.cs
- SplineQuaternionKeyFrame.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- PeerNearMe.cs
- DataGridColumnStyleMappingNameEditor.cs
- XmlReaderDelegator.cs
- AuthenticationModuleElement.cs
- KeyboardEventArgs.cs
- XPathArrayIterator.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- ObjectDataSourceView.cs
- InteropTrackingRecord.cs
- PagesChangedEventArgs.cs