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
- LoginUtil.cs
- Rijndael.cs
- SafeThemeHandle.cs
- CommentAction.cs
- DBDataPermission.cs
- ParseNumbers.cs
- Int32KeyFrameCollection.cs
- ListManagerBindingsCollection.cs
- MachineKeySection.cs
- Environment.cs
- EventItfInfo.cs
- DirectoryNotFoundException.cs
- XPathNode.cs
- FacetEnabledSchemaElement.cs
- X509ChainElement.cs
- EarlyBoundInfo.cs
- SecurityDescriptor.cs
- D3DImage.cs
- SqlRewriteScalarSubqueries.cs
- NativeActivityAbortContext.cs
- infer.cs
- DXD.cs
- CSharpCodeProvider.cs
- MruCache.cs
- LocatorPart.cs
- WindowsStatusBar.cs
- ChtmlPhoneCallAdapter.cs
- SecurityTokenAttachmentMode.cs
- ActivityPreviewDesigner.cs
- XamlSerializer.cs
- RectangleGeometry.cs
- XmlSchemaDatatype.cs
- StructureChangedEventArgs.cs
- CreateDataSourceDialog.cs
- DataPagerFieldCollection.cs
- SchemaCreator.cs
- Preprocessor.cs
- ConstraintCollection.cs
- XmlArrayAttribute.cs
- DrawingServices.cs
- RtfToken.cs
- XLinq.cs
- EventDescriptor.cs
- XmlCustomFormatter.cs
- DrawingAttributesDefaultValueFactory.cs
- DataColumn.cs
- ConfigXmlAttribute.cs
- ParserContext.cs
- OracleConnectionString.cs
- SafeProcessHandle.cs
- PenContext.cs
- Brush.cs
- XmlSchemaSubstitutionGroup.cs
- Brush.cs
- MediaEntryAttribute.cs
- CheckableControlBaseAdapter.cs
- DataKeyCollection.cs
- MediaElementAutomationPeer.cs
- MultitargetingHelpers.cs
- XmlSchema.cs
- EntityTypeBase.cs
- ApplicationFileCodeDomTreeGenerator.cs
- IntSecurity.cs
- EncryptedReference.cs
- ShapingEngine.cs
- ScanQueryOperator.cs
- TextElementEnumerator.cs
- __ConsoleStream.cs
- CompilerCollection.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- HttpCookie.cs
- CompilerTypeWithParams.cs
- ReliabilityContractAttribute.cs
- SqlBuilder.cs
- PrivacyNoticeBindingElementImporter.cs
- NameValueSectionHandler.cs
- LinkedList.cs
- CheckableControlBaseAdapter.cs
- CursorInteropHelper.cs
- BitmapEffectInputConnector.cs
- XmlFormatMapping.cs
- TextRunProperties.cs
- SoapAttributes.cs
- X509CertificateInitiatorServiceCredential.cs
- EncryptedHeader.cs
- CmsInterop.cs
- COM2ExtendedBrowsingHandler.cs
- Terminate.cs
- SoapIgnoreAttribute.cs
- columnmapkeybuilder.cs
- CapabilitiesAssignment.cs
- XPathItem.cs
- TempEnvironment.cs
- SchemeSettingElement.cs
- EventProviderTraceListener.cs
- PropertyInfo.cs
- DeadCharTextComposition.cs
- ReflectionHelper.cs
- SmiEventSink_Default.cs
- ByteConverter.cs