Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Common / FieldMetadata.cs / 1 / FieldMetadata.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data.Common { using System.Data; using System.Data.Metadata.Edm; ////// FieldMetadata class providing the correlation between the column ordinals and MemberMetadata. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1815:OverrideEqualsAndOperatorEqualsOnValueTypes")] public struct FieldMetadata { private readonly EdmMember _fieldType; private readonly int _ordinal; ////// Used to construct a field metadata object relating a column ordinal and an ImemberMetadata. /// /// Column oridnal /// Metadata member public FieldMetadata(int ordinal, EdmMember fieldType) { if (ordinal < 0) { throw EntityUtil.ArgumentOutOfRange("ordinal"); } if (null == fieldType) { throw EntityUtil.ArgumentNull("fieldType"); } _fieldType = fieldType; _ordinal = ordinal; } ////// Metadata member. /// public EdmMember FieldType { get { return _fieldType; } } ////// Column ordinal. /// public int Ordinal { get { return _ordinal; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data.Common { using System.Data; using System.Data.Metadata.Edm; ////// FieldMetadata class providing the correlation between the column ordinals and MemberMetadata. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1815:OverrideEqualsAndOperatorEqualsOnValueTypes")] public struct FieldMetadata { private readonly EdmMember _fieldType; private readonly int _ordinal; ////// Used to construct a field metadata object relating a column ordinal and an ImemberMetadata. /// /// Column oridnal /// Metadata member public FieldMetadata(int ordinal, EdmMember fieldType) { if (ordinal < 0) { throw EntityUtil.ArgumentOutOfRange("ordinal"); } if (null == fieldType) { throw EntityUtil.ArgumentNull("fieldType"); } _fieldType = fieldType; _ordinal = ordinal; } ////// Metadata member. /// public EdmMember FieldType { get { return _fieldType; } } ////// Column ordinal. /// public int Ordinal { get { return _ordinal; } } } } // 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
- ResXResourceReader.cs
- StorageScalarPropertyMapping.cs
- LogReservationCollection.cs
- Propagator.cs
- ToolStripPanelSelectionBehavior.cs
- ThemeInfoAttribute.cs
- XPathExpr.cs
- StrokeNodeEnumerator.cs
- odbcmetadatacollectionnames.cs
- SafeProcessHandle.cs
- SoapSchemaExporter.cs
- InstanceNameConverter.cs
- UIElement3DAutomationPeer.cs
- CompositeTypefaceMetrics.cs
- StylusOverProperty.cs
- EmbeddedMailObject.cs
- ParsedAttributeCollection.cs
- Knowncolors.cs
- AppDomainAttributes.cs
- MobileControlsSectionHelper.cs
- AssertFilter.cs
- XmlAttributes.cs
- APCustomTypeDescriptor.cs
- OracleEncoding.cs
- SafeLocalMemHandle.cs
- ImageField.cs
- MutexSecurity.cs
- SmiXetterAccessMap.cs
- CollectionEditor.cs
- DBConnectionString.cs
- CryptoConfig.cs
- DbProviderFactoriesConfigurationHandler.cs
- ContainerUtilities.cs
- _BasicClient.cs
- UnitySerializationHolder.cs
- XsltCompileContext.cs
- TransformDescriptor.cs
- PermissionToken.cs
- CommandField.cs
- DataSourceBooleanViewSchemaConverter.cs
- PriorityBinding.cs
- ActiveXSite.cs
- UIElementIsland.cs
- AdornerDecorator.cs
- SourceItem.cs
- FontUnitConverter.cs
- XmlUtil.cs
- MemoryFailPoint.cs
- ProcessThreadCollection.cs
- WebScriptMetadataMessage.cs
- ProgressBarBrushConverter.cs
- WebPartVerbsEventArgs.cs
- Pen.cs
- RemoteArgument.cs
- HttpCacheParams.cs
- SemaphoreSlim.cs
- Visual.cs
- FixedMaxHeap.cs
- CodeEntryPointMethod.cs
- MailWriter.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- Keywords.cs
- BStrWrapper.cs
- TextRange.cs
- ResetableIterator.cs
- XPathChildIterator.cs
- webeventbuffer.cs
- MasterPageBuildProvider.cs
- WindowsProgressbar.cs
- Native.cs
- TextFormatterHost.cs
- Substitution.cs
- BuildManagerHost.cs
- DoubleLinkList.cs
- ItemAutomationPeer.cs
- ResourceContainer.cs
- DocumentViewerBase.cs
- UDPClient.cs
- KeyEvent.cs
- NameValueConfigurationCollection.cs
- ByteStorage.cs
- SimpleWebHandlerParser.cs
- VirtualDirectoryMappingCollection.cs
- CompensationParticipant.cs
- ActivityPropertyReference.cs
- ExceptionRoutedEventArgs.cs
- WmlFormAdapter.cs
- DecoderReplacementFallback.cs
- VScrollProperties.cs
- BooleanProjectedSlot.cs
- HttpException.cs
- TokenBasedSetEnumerator.cs
- InlineObject.cs
- DesignSurfaceCollection.cs
- GridErrorDlg.cs
- StructuredTypeInfo.cs
- HandlerBase.cs
- DesignTimeTemplateParser.cs
- DesignerCommandAdapter.cs
- EntityRecordInfo.cs