Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MatchSingleFxEngineOpcode.cs
- WebCategoryAttribute.cs
- Viewport3DAutomationPeer.cs
- CalendarDateRange.cs
- DynamicMethod.cs
- JsonReader.cs
- SolidColorBrush.cs
- GridEntry.cs
- _SSPISessionCache.cs
- MonthCalendar.cs
- ConfigurationFileMap.cs
- Int64Storage.cs
- WindowsSolidBrush.cs
- ToggleProviderWrapper.cs
- UndirectedGraph.cs
- VirtualizingStackPanel.cs
- OdbcRowUpdatingEvent.cs
- WeakReadOnlyCollection.cs
- ToolStripPanelRow.cs
- Metadata.cs
- SqlLiftIndependentRowExpressions.cs
- SpeechUI.cs
- RtfControlWordInfo.cs
- ReadOnlyAttribute.cs
- DbProviderFactory.cs
- ObjectKeyFrameCollection.cs
- ProtocolReflector.cs
- SqlUtils.cs
- ApplicationFileParser.cs
- Cloud.cs
- HttpDebugHandler.cs
- linebase.cs
- TypedElement.cs
- DataServiceKeyAttribute.cs
- UrlMappingsModule.cs
- ConfigXmlAttribute.cs
- SqlNodeTypeOperators.cs
- TypographyProperties.cs
- ToolStripSplitButton.cs
- MarkupCompiler.cs
- DbReferenceCollection.cs
- HttpCookie.cs
- XmlSchemaComplexContentRestriction.cs
- ResXResourceWriter.cs
- TableLayoutSettingsTypeConverter.cs
- ContainerControlDesigner.cs
- AffineTransform3D.cs
- BuilderElements.cs
- HostingEnvironmentWrapper.cs
- ApplicationGesture.cs
- PropertyDescriptorComparer.cs
- CustomAttribute.cs
- WindowProviderWrapper.cs
- DesignTimeData.cs
- LogSwitch.cs
- SqlRowUpdatingEvent.cs
- ConfigurationLocation.cs
- DataColumnMappingCollection.cs
- DesignerHierarchicalDataSourceView.cs
- CatalogZoneAutoFormat.cs
- CodeMemberProperty.cs
- MessageDecoder.cs
- BufferedGraphics.cs
- ListBindableAttribute.cs
- SoapMessage.cs
- RegisteredDisposeScript.cs
- EntitySetRetriever.cs
- EventMappingSettingsCollection.cs
- SerializationHelper.cs
- RouteCollection.cs
- objectquery_tresulttype.cs
- securitymgrsite.cs
- RoutingService.cs
- ClientTargetCollection.cs
- UIElementIsland.cs
- FrameworkContentElement.cs
- OdbcDataReader.cs
- CheckBoxPopupAdapter.cs
- PostBackTrigger.cs
- VectorAnimation.cs
- TraceContextRecord.cs
- HTMLTagNameToTypeMapper.cs
- CfgParser.cs
- ParentUndoUnit.cs
- ConfigXmlText.cs
- XmlQueryStaticData.cs
- WmlPageAdapter.cs
- DispatcherExceptionEventArgs.cs
- ProfileProvider.cs
- DtdParser.cs
- XmlFormatReaderGenerator.cs
- EntityClassGenerator.cs
- Debug.cs
- UserInitiatedRoutedEventPermission.cs
- PolicyException.cs
- KnownAssemblyEntry.cs
- WinEventQueueItem.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- InkPresenterAutomationPeer.cs
- InsufficientMemoryException.cs