Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Common / FieldMetadata.cs / 1 / 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
- ItemDragEvent.cs
- FlowNode.cs
- SafeMILHandle.cs
- StdValidatorsAndConverters.cs
- ClientSideProviderDescription.cs
- BuildManager.cs
- ValidationService.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- ExpressionConverter.cs
- TextPointerBase.cs
- SoapParser.cs
- EncryptedData.cs
- ClosureBinding.cs
- TextProperties.cs
- TrackingMemoryStream.cs
- MemberRelationshipService.cs
- ZipIOBlockManager.cs
- EntitySetBase.cs
- odbcmetadatafactory.cs
- ValidationContext.cs
- SqlGenericUtil.cs
- Int32.cs
- Delegate.cs
- FieldNameLookup.cs
- SafeRightsManagementHandle.cs
- NumericUpDownAcceleration.cs
- SelectionList.cs
- HashAlgorithm.cs
- WebPartConnectionsConfigureVerb.cs
- RSACryptoServiceProvider.cs
- XmlStringTable.cs
- ProviderMetadataCachedInformation.cs
- SqlMethods.cs
- ObjectDesignerDataSourceView.cs
- RepeatButtonAutomationPeer.cs
- ReaderWriterLock.cs
- ColumnBinding.cs
- HtmlEncodedRawTextWriter.cs
- CustomErrorsSectionWrapper.cs
- SchemaNames.cs
- Compilation.cs
- WebPartDeleteVerb.cs
- XPathEmptyIterator.cs
- MLangCodePageEncoding.cs
- XmlQueryContext.cs
- ObjectDataSourceSelectingEventArgs.cs
- GenericTypeParameterBuilder.cs
- RenderDataDrawingContext.cs
- XmlObjectSerializerWriteContextComplex.cs
- HttpAsyncResult.cs
- CodeThrowExceptionStatement.cs
- Camera.cs
- ToolStripButton.cs
- MemberJoinTreeNode.cs
- BaseValidator.cs
- WebPartMenu.cs
- ToolStripOverflow.cs
- HttpValueCollection.cs
- WebPartTransformerCollection.cs
- ResourceExpressionBuilder.cs
- PropertyDescriptorComparer.cs
- UnsafeCollabNativeMethods.cs
- CodeObjectCreateExpression.cs
- Parallel.cs
- DataGridComponentEditor.cs
- TreeNodeCollection.cs
- CornerRadius.cs
- RewritingSimplifier.cs
- WebPartEditorApplyVerb.cs
- StandardCommands.cs
- ScrollChrome.cs
- AnnotationService.cs
- TextParaLineResult.cs
- RouteParser.cs
- SchemaImporterExtensionElement.cs
- BufferedGraphicsManager.cs
- XmlReflectionMember.cs
- CssTextWriter.cs
- LicFileLicenseProvider.cs
- LineBreak.cs
- BindingWorker.cs
- TCPClient.cs
- InputScopeConverter.cs
- BigInt.cs
- NativeMethods.cs
- DrawingContextDrawingContextWalker.cs
- TranslateTransform.cs
- DataSetUtil.cs
- QueryTaskGroupState.cs
- EventRouteFactory.cs
- MetaModel.cs
- DataListItemCollection.cs
- ObjectViewEntityCollectionData.cs
- ProjectionPathBuilder.cs
- DeviceFilterDictionary.cs
- SmtpCommands.cs
- MulticastDelegate.cs
- CodeCommentStatement.cs
- Point3D.cs
- UsernameTokenFactoryCredential.cs