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
- CodeCatchClause.cs
- datacache.cs
- ObjectStateFormatter.cs
- SecureConversationDriver.cs
- PagePropertiesChangingEventArgs.cs
- CodeMemberMethod.cs
- CollectionChangeEventArgs.cs
- WebBrowserEvent.cs
- TraceLog.cs
- SpellerError.cs
- SoapServerMessage.cs
- ThousandthOfEmRealPoints.cs
- PerformanceCountersElement.cs
- ControlValuePropertyAttribute.cs
- SmtpReplyReaderFactory.cs
- OleDbConnectionInternal.cs
- LicenseProviderAttribute.cs
- IpcClientChannel.cs
- GcSettings.cs
- Int16AnimationBase.cs
- MetadataArtifactLoaderResource.cs
- CustomValidator.cs
- PropertyEntry.cs
- AnnotationAdorner.cs
- Object.cs
- SqlDataSourceSelectingEventArgs.cs
- QuaternionAnimation.cs
- StringSorter.cs
- ProfessionalColorTable.cs
- WsatRegistrationHeader.cs
- QueryCacheEntry.cs
- MachineKeySection.cs
- ISAPIApplicationHost.cs
- ObjectRef.cs
- ConfigPathUtility.cs
- Help.cs
- QueryResponse.cs
- ScriptingRoleServiceSection.cs
- ExpressionsCollectionConverter.cs
- ViewKeyConstraint.cs
- Int32CollectionConverter.cs
- RenderData.cs
- SectionVisual.cs
- Site.cs
- TcpStreams.cs
- AuthenticatedStream.cs
- SoapDocumentMethodAttribute.cs
- WeakEventManager.cs
- Relationship.cs
- SQLMoneyStorage.cs
- odbcmetadatacollectionnames.cs
- PrintingPermission.cs
- ManifestSignedXml.cs
- WorkflowApplicationTerminatedException.cs
- Stack.cs
- SystemMulticastIPAddressInformation.cs
- HttpCachePolicyElement.cs
- ToolStripKeyboardHandlingService.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- Thread.cs
- ChannelBinding.cs
- SqlSelectClauseBuilder.cs
- SafeHandles.cs
- TextSerializer.cs
- QilInvoke.cs
- AuthenticateEventArgs.cs
- VisualBrush.cs
- FileDialog_Vista_Interop.cs
- While.cs
- SoapExtensionImporter.cs
- ValueSerializerAttribute.cs
- CharEnumerator.cs
- HtmlContainerControl.cs
- SymbolMethod.cs
- NamespaceEmitter.cs
- FormsAuthentication.cs
- ToolBar.cs
- ClockController.cs
- storepermission.cs
- SchemaConstraints.cs
- DetailsViewUpdatedEventArgs.cs
- EditorAttribute.cs
- Visitors.cs
- Stroke.cs
- SqlDataSourceStatusEventArgs.cs
- AutoCompleteStringCollection.cs
- ConstraintManager.cs
- SQLChars.cs
- Rotation3DAnimation.cs
- WebPartActionVerb.cs
- X500Name.cs
- EdmError.cs
- TextServicesCompartmentEventSink.cs
- EventManager.cs
- ImageField.cs
- safesecurityhelperavalon.cs
- Compilation.cs
- DateTimeConverter.cs
- NewExpression.cs
- AnnotationComponentManager.cs