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
- SemanticKeyElement.cs
- AutomationAttributeInfo.cs
- DecoderNLS.cs
- ChtmlImageAdapter.cs
- ConfigXmlComment.cs
- DocumentSignatureManager.cs
- followingquery.cs
- TextEditorSelection.cs
- StructureChangedEventArgs.cs
- GorillaCodec.cs
- NavigationWindowAutomationPeer.cs
- DescendantBaseQuery.cs
- CollectionTypeElement.cs
- DataSourceSerializationException.cs
- ClientRolePrincipal.cs
- EntityDataSourceDesigner.cs
- DbConnectionInternal.cs
- DeflateStream.cs
- WindowProviderWrapper.cs
- embossbitmapeffect.cs
- PeerDefaultCustomResolverClient.cs
- DateTimeUtil.cs
- SqlBuffer.cs
- LockedActivityGlyph.cs
- CommandLibraryHelper.cs
- OdbcCommand.cs
- QueryOptionExpression.cs
- ScrollProperties.cs
- ClientRoleProvider.cs
- SQLChars.cs
- MetricEntry.cs
- CacheDependency.cs
- SystemFonts.cs
- DrawToolTipEventArgs.cs
- CalculatedColumn.cs
- XmlNamedNodeMap.cs
- FixedDocument.cs
- VarRefManager.cs
- GridViewCommandEventArgs.cs
- ZipIOExtraFieldPaddingElement.cs
- RoleService.cs
- AppDomainManager.cs
- NullableDecimalAverageAggregationOperator.cs
- SnapLine.cs
- ArcSegment.cs
- PartialTrustVisibleAssembliesSection.cs
- FrugalList.cs
- TextPatternIdentifiers.cs
- StreamInfo.cs
- HandleValueEditor.cs
- sqlnorm.cs
- SchemaElementDecl.cs
- SafeRightsManagementHandle.cs
- ListSortDescription.cs
- HopperCache.cs
- SiteMapDesignerDataSourceView.cs
- GroupBoxRenderer.cs
- KnownTypesHelper.cs
- VisualBrush.cs
- DataBoundControl.cs
- StandardTransformFactory.cs
- GeneralTransform3D.cs
- TabletDevice.cs
- MultiSelector.cs
- ScaleTransform.cs
- ByteArrayHelperWithString.cs
- UserPersonalizationStateInfo.cs
- WebContext.cs
- Internal.cs
- ProcessHostFactoryHelper.cs
- OdbcPermission.cs
- MarshalByValueComponent.cs
- ProfileService.cs
- SelectionChangedEventArgs.cs
- MailSettingsSection.cs
- ISFTagAndGuidCache.cs
- ConfigurationProperty.cs
- BaseUriHelper.cs
- NameObjectCollectionBase.cs
- ValidationHelpers.cs
- IndentedTextWriter.cs
- DataObject.cs
- TreeNodeCollectionEditor.cs
- EntityDataSourceDesigner.cs
- ManagementScope.cs
- ConnectionPoint.cs
- ReaderWriterLockWrapper.cs
- StyleHelper.cs
- BitmapEffectDrawingContextWalker.cs
- StringUtil.cs
- WebCategoryAttribute.cs
- PathFigure.cs
- XmlWellformedWriter.cs
- WebException.cs
- MD5CryptoServiceProvider.cs
- BezierSegment.cs
- Scheduler.cs
- CustomTypeDescriptor.cs
- CriticalHandle.cs
- Color.cs