Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SmiEventSink_DeferedProcessing.cs
- OracleRowUpdatingEventArgs.cs
- SizeKeyFrameCollection.cs
- HttpPostedFile.cs
- MultiBindingExpression.cs
- Divide.cs
- AuthenticationModuleElementCollection.cs
- SetIterators.cs
- SettingsContext.cs
- ContentPlaceHolder.cs
- ServicePoint.cs
- DataPointer.cs
- RectValueSerializer.cs
- ConfigurationManagerHelperFactory.cs
- DataColumnCollection.cs
- ConfigurationValue.cs
- XXXOnTypeBuilderInstantiation.cs
- SerializationSectionGroup.cs
- DataGridViewCellLinkedList.cs
- PlanCompiler.cs
- MessageQueuePermissionEntry.cs
- EventToken.cs
- Int32.cs
- DataGridViewColumnConverter.cs
- ItemPager.cs
- TextTreeExtractElementUndoUnit.cs
- MimeMultiPart.cs
- XslNumber.cs
- InputLanguage.cs
- AnimationClock.cs
- ColumnMapCopier.cs
- X509DefaultServiceCertificateElement.cs
- XmlSchemaCollection.cs
- DetailsViewDeleteEventArgs.cs
- AutoGeneratedField.cs
- Utils.cs
- EntityCommandDefinition.cs
- RuntimeConfig.cs
- wmiprovider.cs
- EventMappingSettings.cs
- AxHost.cs
- AssemblyBuilder.cs
- RefreshPropertiesAttribute.cs
- RijndaelManagedTransform.cs
- Property.cs
- AsymmetricAlgorithm.cs
- SerialPort.cs
- DbConnectionPoolIdentity.cs
- ExtenderProvidedPropertyAttribute.cs
- SerializerProvider.cs
- MulticastNotSupportedException.cs
- XmlArrayItemAttribute.cs
- RequestDescription.cs
- TransactedBatchingElement.cs
- NameValueFileSectionHandler.cs
- ClassHandlersStore.cs
- DataObject.cs
- AssociationTypeEmitter.cs
- DataGridTableCollection.cs
- StringResourceManager.cs
- InnerItemCollectionView.cs
- NameTable.cs
- SynchronizedInputAdaptor.cs
- DataGridColumnHeader.cs
- MethodExpr.cs
- ThreadAttributes.cs
- XmlSignatureProperties.cs
- CacheSection.cs
- ListItemCollection.cs
- AutoGeneratedField.cs
- CodeDOMUtility.cs
- GraphicsContext.cs
- Deflater.cs
- StreamInfo.cs
- ReadOnlyDataSource.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DetailsViewDeleteEventArgs.cs
- MessageQueueEnumerator.cs
- CatalogZoneBase.cs
- ParameterExpression.cs
- ScrollBar.cs
- MessageContractAttribute.cs
- WmiInstallComponent.cs
- ActivityInterfaces.cs
- MetadataFile.cs
- ResourcesBuildProvider.cs
- UnsafeNativeMethodsCLR.cs
- _NegoState.cs
- XPathMessageFilter.cs
- LocatorPartList.cs
- KerberosReceiverSecurityToken.cs
- PassportAuthenticationModule.cs
- ReturnType.cs
- NetworkCredential.cs
- ValueChangedEventManager.cs
- Utils.cs
- PropertyDescriptorComparer.cs
- DiscoveryViaBehavior.cs
- TaskScheduler.cs
- InstanceCreationEditor.cs