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
- WeakReference.cs
- WizardPanelChangingEventArgs.cs
- FileLoadException.cs
- EditorPartCollection.cs
- DebugController.cs
- FixedStringLookup.cs
- StoreItemCollection.cs
- ContainerUtilities.cs
- CompilerTypeWithParams.cs
- SrgsNameValueTag.cs
- FSWPathEditor.cs
- Path.cs
- ObjectSecurityT.cs
- TextBoxAutomationPeer.cs
- ExtenderProvidedPropertyAttribute.cs
- FilterableAttribute.cs
- WebPartVerbCollection.cs
- CommonBehaviorsSection.cs
- CustomValidator.cs
- TableItemStyle.cs
- FirstMatchCodeGroup.cs
- Int32EqualityComparer.cs
- JsonReader.cs
- NativeCompoundFileAPIs.cs
- Unit.cs
- SqlTopReducer.cs
- AccessKeyManager.cs
- SourceLocationProvider.cs
- AppSecurityManager.cs
- OpacityConverter.cs
- FileReader.cs
- EventSetterHandlerConverter.cs
- TrackBar.cs
- InkCanvasSelectionAdorner.cs
- DataGridViewIntLinkedList.cs
- ImageListDesigner.cs
- TreeNodeEventArgs.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- WindowHideOrCloseTracker.cs
- DispatcherTimer.cs
- bidPrivateBase.cs
- SqlDataReaderSmi.cs
- TrustLevel.cs
- DynamicMetaObject.cs
- BuildProvidersCompiler.cs
- SplitterPanel.cs
- ScriptManager.cs
- DrawToolTipEventArgs.cs
- Int32RectValueSerializer.cs
- ProgressBar.cs
- DrawTreeNodeEventArgs.cs
- WindowsIPAddress.cs
- DataView.cs
- ObjectMemberMapping.cs
- DataGridAutoFormat.cs
- DataGridViewCellCollection.cs
- InheritanceAttribute.cs
- QuotedStringWriteStateInfo.cs
- WebContentFormatHelper.cs
- EDesignUtil.cs
- RowParagraph.cs
- ColumnResizeUndoUnit.cs
- TypeInfo.cs
- ComboBoxRenderer.cs
- PriorityRange.cs
- SQLChars.cs
- InvalidWMPVersionException.cs
- Soap.cs
- NameObjectCollectionBase.cs
- EpmContentSerializer.cs
- CustomTypeDescriptor.cs
- XmlValidatingReader.cs
- DesignTimeParseData.cs
- HtmlImageAdapter.cs
- ConnectionsZoneAutoFormat.cs
- GiveFeedbackEventArgs.cs
- OperationContext.cs
- MemberDescriptor.cs
- TTSEngineTypes.cs
- StringResourceManager.cs
- TypedRowHandler.cs
- WebBrowserBase.cs
- Globals.cs
- HandoffBehavior.cs
- UriTemplate.cs
- ADConnectionHelper.cs
- ShaderRenderModeValidation.cs
- EnumMember.cs
- ImageFormatConverter.cs
- ReverseInheritProperty.cs
- WhitespaceSignificantCollectionAttribute.cs
- EnumerableRowCollectionExtensions.cs
- SecurityTokenValidationException.cs
- DataServiceExpressionVisitor.cs
- FontUnitConverter.cs
- XmlSchemaAttribute.cs
- PropertySet.cs
- printdlgexmarshaler.cs
- RegexGroupCollection.cs
- Input.cs