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
- DesignSurfaceEvent.cs
- BoundsDrawingContextWalker.cs
- XmlDocumentType.cs
- PropertyGridDesigner.cs
- FieldNameLookup.cs
- LineProperties.cs
- HyperLinkDataBindingHandler.cs
- SocketInformation.cs
- DataControlFieldCell.cs
- SvcMapFile.cs
- LambdaCompiler.Unary.cs
- CopyOnWriteList.cs
- Evidence.cs
- TextParentUndoUnit.cs
- ResourceReferenceExpression.cs
- IdentityReference.cs
- DbConnectionPool.cs
- BinaryConverter.cs
- XsdValidatingReader.cs
- MsdtcWrapper.cs
- PropertyItem.cs
- XmlImplementation.cs
- SizeChangedInfo.cs
- HebrewCalendar.cs
- SspiWrapper.cs
- ContentElement.cs
- DuplexChannel.cs
- EntityRecordInfo.cs
- DesignOnlyAttribute.cs
- QilInvokeLateBound.cs
- CqlIdentifiers.cs
- ClassGenerator.cs
- ChannelSinkStacks.cs
- HMACSHA512.cs
- ComponentGlyph.cs
- FrameworkContentElementAutomationPeer.cs
- RowToFieldTransformer.cs
- PrivilegeNotHeldException.cs
- COM2Properties.cs
- DirectoryInfo.cs
- SafeSecurityHandles.cs
- DeflateStreamAsyncResult.cs
- BulletedList.cs
- WindowsSlider.cs
- GenericParameterDataContract.cs
- AngleUtil.cs
- MatrixTransform.cs
- StringWriter.cs
- VirtualDirectoryMapping.cs
- DynamicAttribute.cs
- QilNode.cs
- ModelUIElement3D.cs
- SettingsContext.cs
- ValuePatternIdentifiers.cs
- Attribute.cs
- TableLayoutCellPaintEventArgs.cs
- SessionPageStatePersister.cs
- PersonalizationStateInfo.cs
- MD5CryptoServiceProvider.cs
- FrugalList.cs
- LinearQuaternionKeyFrame.cs
- ContextMenuStripGroup.cs
- Lease.cs
- TypeBinaryExpression.cs
- TCPListener.cs
- PolicyValidationException.cs
- RegexInterpreter.cs
- DataGridCaption.cs
- OdbcUtils.cs
- PrimitiveDataContract.cs
- DriveNotFoundException.cs
- SecurityBindingElement.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- BuilderPropertyEntry.cs
- KeyboardEventArgs.cs
- DateTimeConverter.cs
- AppearanceEditorPart.cs
- PrimitiveXmlSerializers.cs
- BamlLocalizableResource.cs
- Registry.cs
- CryptoApi.cs
- SQlBooleanStorage.cs
- Matrix.cs
- KeyFrames.cs
- WebSysDisplayNameAttribute.cs
- OleServicesContext.cs
- PasswordBoxAutomationPeer.cs
- UserMapPath.cs
- PlanCompilerUtil.cs
- Avt.cs
- BamlVersionHeader.cs
- OleDbFactory.cs
- FrameworkElementFactory.cs
- StoreAnnotationsMap.cs
- UTF7Encoding.cs
- HostVisual.cs
- EntitySqlQueryCacheKey.cs
- AppDomainUnloadedException.cs
- RecordsAffectedEventArgs.cs
- ButtonBaseAdapter.cs