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
- SchemaMerger.cs
- sapiproxy.cs
- DynamicEndpoint.cs
- StylusPlugin.cs
- DataGridViewMethods.cs
- WebCategoryAttribute.cs
- OletxEnlistment.cs
- SkinBuilder.cs
- ObservableDictionary.cs
- TreeNodeBinding.cs
- MulticastIPAddressInformationCollection.cs
- DbDataAdapter.cs
- RegexWorker.cs
- Signature.cs
- Line.cs
- WebPartManager.cs
- ActivityWithResultWrapper.cs
- TrueReadOnlyCollection.cs
- Component.cs
- TaskScheduler.cs
- AssemblyAttributes.cs
- CodeAttributeArgument.cs
- WindowsButton.cs
- Win32SafeHandles.cs
- Compiler.cs
- PhonemeConverter.cs
- MethodToken.cs
- SqlMetaData.cs
- SimpleHandlerFactory.cs
- TextElementEnumerator.cs
- HttpWebRequestElement.cs
- SHA384CryptoServiceProvider.cs
- Funcletizer.cs
- XamlPoint3DCollectionSerializer.cs
- SafeNativeMethods.cs
- SourceChangedEventArgs.cs
- RSAPKCS1KeyExchangeFormatter.cs
- Visual3D.cs
- HttpProfileGroupBase.cs
- AuthenticationServiceManager.cs
- ItemsPresenter.cs
- WebPartDisplayModeCollection.cs
- Int32CAMarshaler.cs
- PermissionSetTriple.cs
- CollectionViewGroupInternal.cs
- Translator.cs
- TableRowGroup.cs
- SerializationSectionGroup.cs
- FlowDocumentPaginator.cs
- VoiceSynthesis.cs
- FollowerQueueCreator.cs
- DefaultValueAttribute.cs
- ActivityInstanceReference.cs
- SafeHandles.cs
- FlowDocumentFormatter.cs
- XmlDownloadManager.cs
- ProtocolReflector.cs
- ContentElement.cs
- HtmlContainerControl.cs
- MatrixAnimationUsingPath.cs
- RuntimeHelpers.cs
- _ListenerRequestStream.cs
- VirtualPathUtility.cs
- OutputCacheModule.cs
- IisNotInstalledException.cs
- odbcmetadatafactory.cs
- MarkupWriter.cs
- Deflater.cs
- NodeCounter.cs
- CqlBlock.cs
- sitestring.cs
- TreeNodeSelectionProcessor.cs
- BinaryFormatterSinks.cs
- XPathParser.cs
- InternalBase.cs
- WindowHelperService.cs
- XmlSchemaSubstitutionGroup.cs
- LambdaCompiler.Unary.cs
- MexBindingBindingCollectionElement.cs
- ResXBuildProvider.cs
- CacheChildrenQuery.cs
- TreeChangeInfo.cs
- ImportOptions.cs
- AQNBuilder.cs
- AesCryptoServiceProvider.cs
- AngleUtil.cs
- DataRecord.cs
- PerfCounters.cs
- GroupItem.cs
- SegmentInfo.cs
- AssemblyResourceLoader.cs
- SessionPageStatePersister.cs
- DataBindingHandlerAttribute.cs
- DrawingContext.cs
- MimeMapping.cs
- ObjectKeyFrameCollection.cs
- securitycriticaldataClass.cs
- XmlSerializerFactory.cs
- mediaeventshelper.cs
- DbConnectionHelper.cs