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
- ListViewPagedDataSource.cs
- PropertyDescriptor.cs
- XmlBufferedByteStreamReader.cs
- Decorator.cs
- RegexMatch.cs
- HealthMonitoringSection.cs
- XhtmlBasicCalendarAdapter.cs
- XPathAncestorIterator.cs
- Point3DCollectionConverter.cs
- SharedDp.cs
- SQLDecimalStorage.cs
- SystemResourceHost.cs
- ZipIOBlockManager.cs
- ValidationErrorEventArgs.cs
- AdCreatedEventArgs.cs
- RectAnimationUsingKeyFrames.cs
- EncodingTable.cs
- ApplicationManager.cs
- PropertyConverter.cs
- QilVisitor.cs
- HtmlTableRow.cs
- WebException.cs
- TextTreeNode.cs
- XPathNodeList.cs
- Matrix3DStack.cs
- SrgsElementList.cs
- RequestFactory.cs
- JavaScriptObjectDeserializer.cs
- ClientTargetSection.cs
- ReadOnlyPropertyMetadata.cs
- MenuBase.cs
- BuildManager.cs
- VisualTarget.cs
- _HTTPDateParse.cs
- _FixedSizeReader.cs
- ExtendedPropertyDescriptor.cs
- ToolbarAUtomationPeer.cs
- CTreeGenerator.cs
- DataGridViewAdvancedBorderStyle.cs
- DbMetaDataFactory.cs
- ValidatorCollection.cs
- AssertValidation.cs
- VideoDrawing.cs
- EdgeProfileValidation.cs
- KeyInfo.cs
- BitmapEffectState.cs
- StateManagedCollection.cs
- TemplateManager.cs
- HtmlGenericControl.cs
- TableRowsCollectionEditor.cs
- StringValidatorAttribute.cs
- DataColumnMappingCollection.cs
- HybridWebProxyFinder.cs
- SmiEventSink_DeferedProcessing.cs
- OleDbDataReader.cs
- HuffmanTree.cs
- TripleDES.cs
- CannotUnloadAppDomainException.cs
- XmlSchemaIdentityConstraint.cs
- DictionaryChange.cs
- XmlEnumAttribute.cs
- CustomLineCap.cs
- EntityConnectionStringBuilder.cs
- ImageMetadata.cs
- FrameworkObject.cs
- MgmtConfigurationRecord.cs
- AttributeCollection.cs
- Crc32.cs
- OLEDB_Util.cs
- CompoundFileReference.cs
- PageThemeBuildProvider.cs
- SpecialFolderEnumConverter.cs
- ResourceCategoryAttribute.cs
- BamlCollectionHolder.cs
- IncrementalCompileAnalyzer.cs
- Int32AnimationBase.cs
- SafeCancelMibChangeNotify.cs
- TypeDelegator.cs
- XmlUtf8RawTextWriter.cs
- DateTimePicker.cs
- ActivityCollectionMarkupSerializer.cs
- EUCJPEncoding.cs
- ComponentResourceManager.cs
- Utils.cs
- BezierSegment.cs
- WmlLabelAdapter.cs
- Int32Collection.cs
- PartBasedPackageProperties.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- RealizationContext.cs
- EntityDataSourceValidationException.cs
- ConnectionStringsSection.cs
- CodeGeneratorOptions.cs
- SqlCommandBuilder.cs
- TextFindEngine.cs
- BadImageFormatException.cs
- ConfigurationSection.cs
- OletxEnlistment.cs
- EnumBuilder.cs
- ByteStream.cs