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
- ToolBarOverflowPanel.cs
- CollectionViewGroup.cs
- CqlParserHelpers.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- MarkupExtensionParser.cs
- PeerTransportListenAddressValidator.cs
- RegexParser.cs
- TCPClient.cs
- NodeFunctions.cs
- BamlVersionHeader.cs
- TextElementEnumerator.cs
- CertificateManager.cs
- QilValidationVisitor.cs
- EventManager.cs
- InternalsVisibleToAttribute.cs
- UpDownBase.cs
- OracleDateTime.cs
- MatrixAnimationUsingKeyFrames.cs
- DynamicPropertyHolder.cs
- RenderDataDrawingContext.cs
- Literal.cs
- ColumnMapVisitor.cs
- XslNumber.cs
- InteropBitmapSource.cs
- ActivationArguments.cs
- ConfigurationElement.cs
- EncodingDataItem.cs
- CharEntityEncoderFallback.cs
- SizeIndependentAnimationStorage.cs
- BoundField.cs
- Drawing.cs
- DescendantBaseQuery.cs
- BasePattern.cs
- ISessionStateStore.cs
- MetadataCache.cs
- AccessorTable.cs
- WriteableBitmap.cs
- ToolStripItemRenderEventArgs.cs
- KeySplineConverter.cs
- ReadWriteObjectLock.cs
- SeekStoryboard.cs
- ObjectListItem.cs
- ISAPIRuntime.cs
- XamlReaderHelper.cs
- WebExceptionStatus.cs
- IODescriptionAttribute.cs
- ClientScriptManager.cs
- SafeRegistryHandle.cs
- EntityDataSourceWizardForm.cs
- BitmapCodecInfo.cs
- SymbolType.cs
- TextRangeEditTables.cs
- StoreAnnotationsMap.cs
- SafeFileHandle.cs
- OpenFileDialog.cs
- CaseCqlBlock.cs
- XmlCharacterData.cs
- StringFormat.cs
- ProcessInfo.cs
- Adorner.cs
- _SslState.cs
- SafeNativeMethods.cs
- AnnotationResourceCollection.cs
- COAUTHIDENTITY.cs
- MobileControlsSectionHandler.cs
- ScopelessEnumAttribute.cs
- UIElement3DAutomationPeer.cs
- OleDbError.cs
- CollectionChangeEventArgs.cs
- OleDbPropertySetGuid.cs
- StringHelper.cs
- EventMappingSettings.cs
- DataConnectionHelper.cs
- DBConnection.cs
- WebPartAuthorizationEventArgs.cs
- TreeNodeEventArgs.cs
- QuaternionRotation3D.cs
- ComboBox.cs
- DiscoveryClientDuplexChannel.cs
- _UncName.cs
- DataRowChangeEvent.cs
- SettingsProperty.cs
- DetailsViewInsertEventArgs.cs
- MediaPlayer.cs
- EmptyImpersonationContext.cs
- SqlDataAdapter.cs
- BindingMAnagerBase.cs
- DataGridViewColumn.cs
- GenericRootAutomationPeer.cs
- XamlFilter.cs
- EventSource.cs
- LingerOption.cs
- AssemblyInfo.cs
- Module.cs
- XamlTypeMapperSchemaContext.cs
- BrowserCapabilitiesFactoryBase.cs
- wgx_commands.cs
- StylusTip.cs
- Effect.cs
- BrushValueSerializer.cs