Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Common / FieldMetadata.cs / 2 / 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
- FixedSOMTable.cs
- CodeTypeMember.cs
- Simplifier.cs
- FormsAuthenticationConfiguration.cs
- PropertyChange.cs
- LinkClickEvent.cs
- SqlException.cs
- SamlAuthenticationClaimResource.cs
- XmlSchemaResource.cs
- InstanceLockedException.cs
- EventMappingSettings.cs
- mediapermission.cs
- JavaScriptSerializer.cs
- CompositeCollectionView.cs
- ScrollBarRenderer.cs
- SqlXmlStorage.cs
- BoundsDrawingContextWalker.cs
- BlockingCollection.cs
- FontDialog.cs
- DataKey.cs
- ObjectDataSourceEventArgs.cs
- Run.cs
- ZipIOBlockManager.cs
- ChannelSinkStacks.cs
- ProgressBar.cs
- WriteLineDesigner.xaml.cs
- DataGridCellsPresenter.cs
- VarRefManager.cs
- RegexWorker.cs
- DetailsViewUpdatedEventArgs.cs
- UTF8Encoding.cs
- NameValuePair.cs
- EntityPropertyMappingAttribute.cs
- AuthenticateEventArgs.cs
- DataGridCellAutomationPeer.cs
- SuppressIldasmAttribute.cs
- SystemIPv6InterfaceProperties.cs
- WebBrowserNavigatingEventHandler.cs
- ObservableDictionary.cs
- AttachedPropertyMethodSelector.cs
- ActivationArguments.cs
- UnaryNode.cs
- CmsInterop.cs
- InheritanceRules.cs
- FormViewInsertEventArgs.cs
- CachedCompositeFamily.cs
- AssemblyAttributes.cs
- HMACSHA512.cs
- UserMapPath.cs
- AssemblyNameUtility.cs
- ZipIOExtraField.cs
- XmlSchemaSimpleContent.cs
- ServiceOperation.cs
- CompiledQuery.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- GroupBox.cs
- ListViewAutomationPeer.cs
- XmlEntity.cs
- MD5.cs
- Workspace.cs
- RSAOAEPKeyExchangeDeformatter.cs
- OdbcReferenceCollection.cs
- ContextMenuStrip.cs
- LogFlushAsyncResult.cs
- EdmSchemaError.cs
- Metadata.cs
- Utils.cs
- DefaultTextStore.cs
- VisualStyleElement.cs
- MetafileHeaderWmf.cs
- CompModSwitches.cs
- MouseActionConverter.cs
- CallbackValidatorAttribute.cs
- ContractUtils.cs
- ComplusEndpointConfigContainer.cs
- PathFigureCollectionValueSerializer.cs
- CellTreeSimplifier.cs
- PowerModeChangedEventArgs.cs
- PageTheme.cs
- TreeNodeBinding.cs
- TextProperties.cs
- WebPartCancelEventArgs.cs
- RootBrowserWindowProxy.cs
- XmlMapping.cs
- LineUtil.cs
- _NegotiateClient.cs
- CompressedStack.cs
- InstanceKeyCompleteException.cs
- HyperLinkDesigner.cs
- RuntimeHandles.cs
- Point.cs
- Vector3DCollection.cs
- panel.cs
- Transform3DCollection.cs
- MarkupObject.cs
- WebZoneDesigner.cs
- TabControlAutomationPeer.cs
- AppDomainManager.cs
- AssemblyAttributes.cs
- EventRoute.cs