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
- DataBoundControlDesigner.cs
- WebPartCloseVerb.cs
- TagPrefixInfo.cs
- SafeFileMapViewHandle.cs
- CustomAttribute.cs
- Pair.cs
- BuildTopDownAttribute.cs
- DataBoundControl.cs
- _SslState.cs
- SlipBehavior.cs
- BinaryFormatterWriter.cs
- FileLogRecord.cs
- TableDetailsRow.cs
- TypeDependencyAttribute.cs
- CodeArrayIndexerExpression.cs
- PersonalizationDictionary.cs
- RadioButtonPopupAdapter.cs
- Subtree.cs
- ControlParameter.cs
- propertytag.cs
- XmlSchemaNotation.cs
- RawStylusActions.cs
- Point3D.cs
- AddValidationError.cs
- HttpCacheVaryByContentEncodings.cs
- OletxTransactionHeader.cs
- DynamicILGenerator.cs
- PersonalizationProvider.cs
- ListViewUpdatedEventArgs.cs
- HttpModuleAction.cs
- CmsInterop.cs
- IndexedSelectQueryOperator.cs
- MultipartContentParser.cs
- TranslateTransform.cs
- BindingMemberInfo.cs
- OwnerDrawPropertyBag.cs
- WindowsGraphicsCacheManager.cs
- ProjectionQueryOptionExpression.cs
- GridViewCommandEventArgs.cs
- FontNamesConverter.cs
- BrowserDefinition.cs
- connectionpool.cs
- StaticSiteMapProvider.cs
- PriorityChain.cs
- CodeConditionStatement.cs
- RemoteHelper.cs
- DebugViewWriter.cs
- DoWorkEventArgs.cs
- streamingZipPartStream.cs
- PackageRelationshipSelector.cs
- AccessControlList.cs
- DataRelationPropertyDescriptor.cs
- RenderData.cs
- QueueProcessor.cs
- WebResponse.cs
- EUCJPEncoding.cs
- GeometryGroup.cs
- Delegate.cs
- SymbolPair.cs
- ProcessInfo.cs
- wpf-etw.cs
- BamlResourceDeserializer.cs
- FixedSOMImage.cs
- IdnMapping.cs
- webproxy.cs
- ReturnEventArgs.cs
- OdbcConnectionOpen.cs
- PropertyRecord.cs
- MarkupCompilePass2.cs
- SqlTypeConverter.cs
- DecimalConverter.cs
- SchemaObjectWriter.cs
- WebColorConverter.cs
- XhtmlTextWriter.cs
- MarshalByRefObject.cs
- AsyncPostBackErrorEventArgs.cs
- ProfileParameter.cs
- CryptoApi.cs
- ObjectStateEntryDbDataRecord.cs
- DataTableCollection.cs
- DesignerTransaction.cs
- TextFormatter.cs
- TemplateColumn.cs
- SharedDp.cs
- UdpDuplexChannel.cs
- GridItemCollection.cs
- embossbitmapeffect.cs
- UnicodeEncoding.cs
- BinaryObjectInfo.cs
- clipboard.cs
- GlyphingCache.cs
- AnnotationResource.cs
- ScriptDescriptor.cs
- WindowsListView.cs
- TraceSection.cs
- LambdaCompiler.Binary.cs
- DependencyObjectValidator.cs
- CacheSection.cs
- TraceContextRecord.cs
- DataSpaceManager.cs