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
- ClrProviderManifest.cs
- WebException.cs
- ApplicationHost.cs
- ItemCollection.cs
- RunClient.cs
- XmlSchemaDatatype.cs
- Site.cs
- HttpRuntimeSection.cs
- ExcludePathInfo.cs
- XmlSchemaCollection.cs
- ChtmlPageAdapter.cs
- SamlConditions.cs
- InputMethodStateChangeEventArgs.cs
- UnmanagedMemoryStream.cs
- FontCacheUtil.cs
- QilName.cs
- addressfiltermode.cs
- DbParameterCollectionHelper.cs
- XPathDocumentIterator.cs
- Collection.cs
- LedgerEntry.cs
- IndexExpression.cs
- HTMLTagNameToTypeMapper.cs
- SqlNamer.cs
- SpeakCompletedEventArgs.cs
- DictionaryEditChange.cs
- SplineKeyFrames.cs
- TransactionFlowBindingElement.cs
- Tokenizer.cs
- GcSettings.cs
- InstanceData.cs
- ParserOptions.cs
- FragmentQuery.cs
- DecimalFormatter.cs
- WorkflowInstanceExtensionManager.cs
- UnsafeNetInfoNativeMethods.cs
- CuspData.cs
- AsyncOperationContext.cs
- ReadOnlyDataSourceView.cs
- DbProviderFactoriesConfigurationHandler.cs
- MergeFilterQuery.cs
- LinkedResourceCollection.cs
- SynchronizedKeyedCollection.cs
- Message.cs
- MetadataLocation.cs
- Latin1Encoding.cs
- ApplicationSecurityInfo.cs
- BmpBitmapDecoder.cs
- KnownIds.cs
- GrabHandleGlyph.cs
- UrlEncodedParameterWriter.cs
- RecognizedWordUnit.cs
- ServerValidateEventArgs.cs
- XmlCharCheckingWriter.cs
- ParserContext.cs
- HiddenField.cs
- SecurityPermission.cs
- SizeAnimationClockResource.cs
- ConnectionManagementElement.cs
- HttpProfileBase.cs
- FrameworkElement.cs
- CheckBox.cs
- XmlObjectSerializerReadContextComplexJson.cs
- HasCopySemanticsAttribute.cs
- ConditionalExpression.cs
- ByteStreamGeometryContext.cs
- ToolStripSplitButton.cs
- GridViewRow.cs
- BinHexDecoder.cs
- Label.cs
- RouteData.cs
- DataGridTextBoxColumn.cs
- CodeStatementCollection.cs
- assemblycache.cs
- ConfigurationManager.cs
- IERequestCache.cs
- StateValidator.cs
- SurrogateEncoder.cs
- ThicknessAnimationUsingKeyFrames.cs
- HostUtils.cs
- ShapingWorkspace.cs
- CodeGroup.cs
- PeerPresenceInfo.cs
- GlobalDataBindingHandler.cs
- SymbolMethod.cs
- TreeViewTemplateSelector.cs
- XmlSchemaInferenceException.cs
- HtmlLabelAdapter.cs
- UnicodeEncoding.cs
- XmlKeywords.cs
- RemoteWebConfigurationHostServer.cs
- TextFormatter.cs
- DataTransferEventArgs.cs
- _CacheStreams.cs
- SynchronizedReadOnlyCollection.cs
- DataContractSerializerServiceBehavior.cs
- ContextMenu.cs
- ConfigPathUtility.cs
- InkCanvasSelection.cs
- CommandHelpers.cs