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
- MaskedTextBox.cs
- FrameSecurityDescriptor.cs
- ClientSettingsStore.cs
- IisTraceListener.cs
- CfgRule.cs
- HashFinalRequest.cs
- LostFocusEventManager.cs
- ManagementPath.cs
- XmlStringTable.cs
- ObjectDataSourceChooseTypePanel.cs
- RenderDataDrawingContext.cs
- BaseTemplateCodeDomTreeGenerator.cs
- TextParagraph.cs
- Roles.cs
- MultiByteCodec.cs
- ClientFormsAuthenticationMembershipProvider.cs
- SiteMapNode.cs
- HtmlInputSubmit.cs
- SymbolEqualComparer.cs
- CodeDomLoader.cs
- DbParameterHelper.cs
- ImageSource.cs
- _NestedMultipleAsyncResult.cs
- ConfigurationLocationCollection.cs
- BitmapEffectGroup.cs
- PropertyGroupDescription.cs
- DocumentApplication.cs
- UserValidatedEventArgs.cs
- SamlConstants.cs
- TreeNodeBindingDepthConverter.cs
- ISCIIEncoding.cs
- ExpressionEvaluator.cs
- PenContexts.cs
- FormViewUpdatedEventArgs.cs
- ReplacementText.cs
- LeafCellTreeNode.cs
- SubpageParaClient.cs
- SystemFonts.cs
- WindowsTreeView.cs
- SystemBrushes.cs
- ProtocolsConfigurationEntry.cs
- Native.cs
- VariableQuery.cs
- ListItemViewControl.cs
- AvTrace.cs
- InstanceContext.cs
- SimpleTypesSurrogate.cs
- __ConsoleStream.cs
- Color.cs
- OdbcFactory.cs
- ColumnResizeAdorner.cs
- XmlCustomFormatter.cs
- OracleParameter.cs
- UidManager.cs
- DataGridRowAutomationPeer.cs
- ShapingEngine.cs
- DataGridViewCellMouseEventArgs.cs
- ThousandthOfEmRealDoubles.cs
- NewExpression.cs
- ComponentEvent.cs
- RuntimeIdentifierPropertyAttribute.cs
- StreamWithDictionary.cs
- NavigationExpr.cs
- HealthMonitoringSectionHelper.cs
- ServiceThrottlingElement.cs
- MsmqIntegrationReceiveParameters.cs
- HtmlString.cs
- FrameworkRichTextComposition.cs
- ADConnectionHelper.cs
- ChildDocumentBlock.cs
- DataGridViewDataConnection.cs
- _DisconnectOverlappedAsyncResult.cs
- RichTextBoxConstants.cs
- SessionEndingEventArgs.cs
- StrongTypingException.cs
- FormViewDeleteEventArgs.cs
- TemplateXamlTreeBuilder.cs
- TypeForwardedToAttribute.cs
- GroupBoxRenderer.cs
- ModuleConfigurationInfo.cs
- ClientData.cs
- LinqDataView.cs
- RequestResponse.cs
- ViewCellSlot.cs
- WebEventCodes.cs
- Logging.cs
- SemanticBasicElement.cs
- BamlResourceDeserializer.cs
- Debugger.cs
- WebServiceResponseDesigner.cs
- WebPermission.cs
- BamlBinaryWriter.cs
- SelectingProviderEventArgs.cs
- Triangle.cs
- ReadonlyMessageFilter.cs
- COAUTHINFO.cs
- AlgoModule.cs
- Logging.cs
- ListParaClient.cs
- LinearKeyFrames.cs