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
- DefinitionUpdate.cs
- CompressedStack.cs
- TerminatorSinks.cs
- ServiceHost.cs
- AssemblyNameProxy.cs
- UnionCodeGroup.cs
- DataServiceKeyAttribute.cs
- XmlSchemaAttributeGroupRef.cs
- ModelProperty.cs
- RoutedEventValueSerializer.cs
- CheckBoxStandardAdapter.cs
- ColorConverter.cs
- Component.cs
- VectorKeyFrameCollection.cs
- RuntimeConfig.cs
- ModelItemImpl.cs
- PropertyTabChangedEvent.cs
- assemblycache.cs
- IntPtr.cs
- NotifyCollectionChangedEventArgs.cs
- HttpApplicationFactory.cs
- FlowLayout.cs
- ProfileService.cs
- WebPartConnectionsDisconnectVerb.cs
- ExpressionVisitor.cs
- activationcontext.cs
- UnmanagedMemoryStreamWrapper.cs
- Native.cs
- DesignTimeSiteMapProvider.cs
- Configuration.cs
- UpDownEvent.cs
- _TLSstream.cs
- InstanceLockedException.cs
- ProxyHelper.cs
- SystemFonts.cs
- StringAnimationUsingKeyFrames.cs
- CallbackHandler.cs
- HtmlMobileTextWriter.cs
- TrackingLocation.cs
- JulianCalendar.cs
- DataSourceHelper.cs
- CanonicalizationDriver.cs
- ProtocolsConfiguration.cs
- SchemaSetCompiler.cs
- SessionEndingCancelEventArgs.cs
- SqlProviderManifest.cs
- HttpVersion.cs
- CatalogZoneBase.cs
- FormsAuthenticationUserCollection.cs
- HostExecutionContextManager.cs
- HelpEvent.cs
- ZoneIdentityPermission.cs
- SingleKeyFrameCollection.cs
- ScrollEventArgs.cs
- Rect3D.cs
- ListSortDescription.cs
- QuadraticBezierSegment.cs
- HMACSHA384.cs
- MemberRelationshipService.cs
- initElementDictionary.cs
- InfoCardSchemas.cs
- TabControl.cs
- SafeEventHandle.cs
- ToolStripScrollButton.cs
- ProcessThreadCollection.cs
- ImpersonateTokenRef.cs
- Activity.cs
- FolderBrowserDialog.cs
- ContentElementAutomationPeer.cs
- FilteredSchemaElementLookUpTable.cs
- TimerElapsedEvenArgs.cs
- TimeSpan.cs
- PropertyContainer.cs
- AssemblyFilter.cs
- _SSPISessionCache.cs
- CachingHintValidation.cs
- XmlWriter.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- XPathBuilder.cs
- QilCloneVisitor.cs
- Lasso.cs
- MissingFieldException.cs
- FormParameter.cs
- HelloOperation11AsyncResult.cs
- XmlDataLoader.cs
- ResourceKey.cs
- MetadataFile.cs
- GridView.cs
- SerializationSectionGroup.cs
- Wizard.cs
- IndexedGlyphRun.cs
- CodeMemberProperty.cs
- RepeaterItemEventArgs.cs
- Zone.cs
- Connector.cs
- CellRelation.cs
- ExtentCqlBlock.cs
- SiteMapNodeItem.cs
- HandlerBase.cs
- EndpointConfigContainer.cs