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
- ToolStripItemImageRenderEventArgs.cs
- InvalidFilterCriteriaException.cs
- ActiveDesignSurfaceEvent.cs
- CodeTypeReferenceExpression.cs
- Transform3D.cs
- LoadRetryConstantStrategy.cs
- ColumnTypeConverter.cs
- AsyncResult.cs
- TaskExtensions.cs
- CacheForPrimitiveTypes.cs
- SafeArchiveContext.cs
- HashMembershipCondition.cs
- ToolStripRenderEventArgs.cs
- HttpHandlerActionCollection.cs
- QilPatternFactory.cs
- ObjectToIdCache.cs
- XmlSchemaSimpleContent.cs
- BidPrivateBase.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- _AcceptOverlappedAsyncResult.cs
- DATA_BLOB.cs
- ViewCellSlot.cs
- DefaultSection.cs
- WebConfigManager.cs
- HttpResponse.cs
- QilReference.cs
- DropShadowBitmapEffect.cs
- ParentQuery.cs
- TextBlockAutomationPeer.cs
- OdbcFactory.cs
- SoundPlayer.cs
- Tracer.cs
- AssemblyBuilder.cs
- ParserContext.cs
- UpdateExpressionVisitor.cs
- ResourcesChangeInfo.cs
- SQLInt32.cs
- UrlParameterReader.cs
- PasswordBox.cs
- ConfigurationValidatorAttribute.cs
- Keyboard.cs
- WebHttpBehavior.cs
- DodSequenceMerge.cs
- DataSourceView.cs
- DesignerTextViewAdapter.cs
- EventMap.cs
- SecurityToken.cs
- Utils.cs
- ConfigurationElement.cs
- VarInfo.cs
- HandlerBase.cs
- TrustSection.cs
- Keyboard.cs
- ChainedAsyncResult.cs
- XhtmlBasicControlAdapter.cs
- GraphicsPathIterator.cs
- SoapAttributes.cs
- ColumnHeaderConverter.cs
- DescriptionAttribute.cs
- AQNBuilder.cs
- ToolboxCategoryItems.cs
- SqlTopReducer.cs
- BitmapEffectCollection.cs
- Figure.cs
- TraceUtils.cs
- CompModSwitches.cs
- XmlAttribute.cs
- Label.cs
- WizardStepBase.cs
- StreamReader.cs
- SchemaTableOptionalColumn.cs
- MetaModel.cs
- ToolStripLocationCancelEventArgs.cs
- TypeBuilder.cs
- HMACRIPEMD160.cs
- WebPartTransformer.cs
- LogSwitch.cs
- DataTablePropertyDescriptor.cs
- FeedUtils.cs
- QilIterator.cs
- LinqDataSourceUpdateEventArgs.cs
- ResourcePermissionBase.cs
- ProcessHostFactoryHelper.cs
- CultureTable.cs
- PasswordBox.cs
- GridSplitter.cs
- TraceSwitch.cs
- RoutedPropertyChangedEventArgs.cs
- DbExpressionRules.cs
- SyncMethodInvoker.cs
- ReadOnlyPermissionSet.cs
- Clock.cs
- SessionStateModule.cs
- DataGridViewCellStyleChangedEventArgs.cs
- BackgroundFormatInfo.cs
- Exceptions.cs
- MessagePropertyFilter.cs
- MetadataSource.cs
- DataSourceXmlTextReader.cs
- PassportAuthentication.cs