Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / FieldMetadata.cs / 1305376 / 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
- SemaphoreFullException.cs
- Inflater.cs
- Grammar.cs
- IndependentAnimationStorage.cs
- AuthenticodeSignatureInformation.cs
- ParserStreamGeometryContext.cs
- EventEntry.cs
- RectAnimationUsingKeyFrames.cs
- SpeechRecognizer.cs
- WebPartHeaderCloseVerb.cs
- TimeIntervalCollection.cs
- StringDictionary.cs
- ArgumentsParser.cs
- VideoDrawing.cs
- Int32Converter.cs
- DoubleAnimationClockResource.cs
- MarkupProperty.cs
- SHA384Managed.cs
- ObjectPersistData.cs
- WhitespaceSignificantCollectionAttribute.cs
- _NetRes.cs
- UIntPtr.cs
- BulletedList.cs
- IdentitySection.cs
- CodeTypeDeclaration.cs
- BitmapEffectGroup.cs
- OdbcConnectionStringbuilder.cs
- DataGridViewCellStateChangedEventArgs.cs
- XmlLanguage.cs
- SrgsToken.cs
- SecurityCookieModeValidator.cs
- PropertyBuilder.cs
- WebPart.cs
- COM2ExtendedUITypeEditor.cs
- XmlException.cs
- ListBoxAutomationPeer.cs
- SafeHandles.cs
- BidPrivateBase.cs
- ToolStripContentPanelRenderEventArgs.cs
- TableRow.cs
- ScrollBar.cs
- SqlBuilder.cs
- AdornerHitTestResult.cs
- HttpApplicationFactory.cs
- PopupRootAutomationPeer.cs
- SingleObjectCollection.cs
- VSWCFServiceContractGenerator.cs
- AppDomainUnloadedException.cs
- HttpServerUtilityBase.cs
- XmlSchemaCompilationSettings.cs
- TimeSpanValidatorAttribute.cs
- RangeBase.cs
- RightsManagementPermission.cs
- SqlCacheDependency.cs
- BinaryObjectWriter.cs
- RegexCaptureCollection.cs
- MemberMaps.cs
- TimeEnumHelper.cs
- SQLMoneyStorage.cs
- QueryStatement.cs
- StringComparer.cs
- DeferredElementTreeState.cs
- BaseDataBoundControl.cs
- CodeTypeReferenceExpression.cs
- UpdatePanelTrigger.cs
- Debug.cs
- XmlSerializationReader.cs
- IpcServerChannel.cs
- CssStyleCollection.cs
- TrailingSpaceComparer.cs
- Logging.cs
- XmlWriterTraceListener.cs
- XmlSchemaSimpleTypeUnion.cs
- EffectiveValueEntry.cs
- GridViewEditEventArgs.cs
- IndexedString.cs
- TextBreakpoint.cs
- SqlTypeSystemProvider.cs
- DataDocumentXPathNavigator.cs
- HtmlSelectionListAdapter.cs
- QuaternionAnimation.cs
- HttpRawResponse.cs
- BitmapEffectDrawingContent.cs
- TraversalRequest.cs
- ValidationResult.cs
- InputLanguageProfileNotifySink.cs
- EpmTargetPathSegment.cs
- ExtensionSimplifierMarkupObject.cs
- ActivityTypeDesigner.xaml.cs
- ObjectTag.cs
- XmlRawWriter.cs
- FormatException.cs
- ClassicBorderDecorator.cs
- InternalBufferManager.cs
- ExpressionVisitor.cs
- PathSegment.cs
- CollectionChangedEventManager.cs
- WinInetCache.cs
- DataGridTable.cs
- ReferenceList.cs