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
- NamespaceMapping.cs
- PassportIdentity.cs
- HttpWebRequest.cs
- CommonObjectSecurity.cs
- ObjectStateManagerMetadata.cs
- Schema.cs
- MatrixValueSerializer.cs
- FocusWithinProperty.cs
- XmlNodeChangedEventArgs.cs
- PageAsyncTaskManager.cs
- ScriptResourceInfo.cs
- ExportOptions.cs
- OracleTransaction.cs
- Comparer.cs
- Html32TextWriter.cs
- CompoundFileStorageReference.cs
- StandardToolWindows.cs
- DiscoveryInnerClientAdhoc11.cs
- DbgUtil.cs
- peersecurityelement.cs
- ViewStateException.cs
- ReflectionHelper.cs
- FontInfo.cs
- EndpointReference.cs
- SelectionRange.cs
- DesignerCategoryAttribute.cs
- FormatControl.cs
- Drawing.cs
- ProcessThreadDesigner.cs
- DependencySource.cs
- LinqDataSourceInsertEventArgs.cs
- BasicViewGenerator.cs
- RedirectionProxy.cs
- WebPartChrome.cs
- DataGridCheckBoxColumn.cs
- DesignerWidgets.cs
- AnonymousIdentificationSection.cs
- WebContext.cs
- PointAnimation.cs
- SignedXmlDebugLog.cs
- PageSetupDialog.cs
- NameValueConfigurationElement.cs
- ISFClipboardData.cs
- DoubleSumAggregationOperator.cs
- Utils.cs
- ProgressBar.cs
- OracleConnectionFactory.cs
- SafeIUnknown.cs
- ScrollBar.cs
- ResolveNameEventArgs.cs
- ColumnPropertiesGroup.cs
- IgnoreFileBuildProvider.cs
- XsltLoader.cs
- AssemblyBuilderData.cs
- MenuCommands.cs
- RegexParser.cs
- BamlLocalizabilityResolver.cs
- MethodAccessException.cs
- NameValueConfigurationElement.cs
- BadImageFormatException.cs
- ExceptionAggregator.cs
- TrustManager.cs
- DictionaryEntry.cs
- ComponentManagerBroker.cs
- ObjectViewEntityCollectionData.cs
- DataGridViewCellCollection.cs
- CompoundFileStreamReference.cs
- WebPartHelpVerb.cs
- WebBrowser.cs
- HttpContextServiceHost.cs
- OutputWindow.cs
- UrlPath.cs
- SafeProcessHandle.cs
- SineEase.cs
- DPCustomTypeDescriptor.cs
- ReachSerializationCacheItems.cs
- SqlStream.cs
- ReverseInheritProperty.cs
- RC2CryptoServiceProvider.cs
- OneOfTypeConst.cs
- HighlightComponent.cs
- Delegate.cs
- ByteKeyFrameCollection.cs
- PackageRelationshipSelector.cs
- ListViewGroupConverter.cs
- MetaType.cs
- DBSchemaTable.cs
- CmsInterop.cs
- Authorization.cs
- SByte.cs
- EditingScopeUndoUnit.cs
- Error.cs
- infer.cs
- FileDialogCustomPlacesCollection.cs
- ToolStripPanel.cs
- JavaScriptString.cs
- JumpItem.cs
- ParallelSeparator.xaml.cs
- UnitySerializationHolder.cs
- WebPartConnectionsCloseVerb.cs