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
- ExcludeFromCodeCoverageAttribute.cs
- UntypedNullExpression.cs
- AtomicFile.cs
- InputLangChangeRequestEvent.cs
- TransactionState.cs
- cryptoapiTransform.cs
- LightweightCodeGenerator.cs
- StringInfo.cs
- MD5.cs
- ScrollItemPatternIdentifiers.cs
- EdmSchemaAttribute.cs
- BamlMapTable.cs
- TextRangeSerialization.cs
- EmptyCollection.cs
- WindowPattern.cs
- validationstate.cs
- EntityDesignerDataSourceView.cs
- SimpleHandlerFactory.cs
- Suspend.cs
- EditorPartCollection.cs
- SHA512Managed.cs
- RayHitTestParameters.cs
- TextRangeAdaptor.cs
- AuthenticateEventArgs.cs
- Decorator.cs
- SecurityException.cs
- SQLResource.cs
- LoginCancelEventArgs.cs
- WindowsComboBox.cs
- OleDbError.cs
- ListView.cs
- InspectionWorker.cs
- SqlFacetAttribute.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ContentHostHelper.cs
- DateTimeOffsetStorage.cs
- CodeAttributeArgument.cs
- CodeChecksumPragma.cs
- TreeView.cs
- AssertSection.cs
- FormattedTextSymbols.cs
- OletxCommittableTransaction.cs
- OutputBuffer.cs
- BaseCollection.cs
- XmlSerializerNamespaces.cs
- NameNode.cs
- Hashtable.cs
- relpropertyhelper.cs
- EdgeModeValidation.cs
- CollectionBuilder.cs
- XmlArrayAttribute.cs
- Normalizer.cs
- BitStack.cs
- HttpServerUtilityWrapper.cs
- EndpointAddressAugust2004.cs
- ProviderIncompatibleException.cs
- MethodExpr.cs
- BinaryNode.cs
- CheckBoxList.cs
- Memoizer.cs
- SpecialFolderEnumConverter.cs
- DataTableExtensions.cs
- DataGridViewTopLeftHeaderCell.cs
- CompositeFontFamily.cs
- WebBrowserContainer.cs
- SafeLibraryHandle.cs
- BindingsCollection.cs
- Logging.cs
- ByteStream.cs
- XmlSignificantWhitespace.cs
- ImageField.cs
- SoapClientProtocol.cs
- TypeConverterHelper.cs
- PersonalizationEntry.cs
- MeasureData.cs
- ExternalException.cs
- ObjectRef.cs
- MatrixTransform3D.cs
- GenericWebPart.cs
- SizeKeyFrameCollection.cs
- WindowsListViewSubItem.cs
- ScriptResourceInfo.cs
- PrtTicket_Public_Simple.cs
- SoapAttributeAttribute.cs
- ConnectivityStatus.cs
- ReflectEventDescriptor.cs
- FunctionImportElement.cs
- SafeNativeMethods.cs
- TemplateBuilder.cs
- PixelShader.cs
- ViewStateModeByIdAttribute.cs
- ContentType.cs
- Container.cs
- RelatedCurrencyManager.cs
- EntitySqlQueryCacheEntry.cs
- InkPresenterAutomationPeer.cs
- PointHitTestResult.cs
- StateItem.cs
- ReadOnlyAttribute.cs
- ConfigurationException.cs