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
- XmlSchemaAttribute.cs
- CookieProtection.cs
- CqlErrorHelper.cs
- EditorOptionAttribute.cs
- ResumeStoryboard.cs
- MimeTypeAttribute.cs
- StatusBarItem.cs
- DataGridItem.cs
- CharacterString.cs
- FontDriver.cs
- followingsibling.cs
- _KerberosClient.cs
- CornerRadius.cs
- UIElementHelper.cs
- login.cs
- ClientConfigurationSystem.cs
- DocumentOrderComparer.cs
- IgnoreFileBuildProvider.cs
- CompilerInfo.cs
- SettingsPropertyIsReadOnlyException.cs
- EncryptedPackage.cs
- LayoutSettings.cs
- ToolStripGripRenderEventArgs.cs
- TouchEventArgs.cs
- Stroke2.cs
- sitestring.cs
- InitializationEventAttribute.cs
- Attributes.cs
- WebPart.cs
- EntityDataSourceWizardForm.cs
- ObjectDataSourceSelectingEventArgs.cs
- DeploymentSection.cs
- SQLInt32Storage.cs
- AQNBuilder.cs
- WebRequestModuleElementCollection.cs
- BasicHttpBindingElement.cs
- IsolatedStorage.cs
- HostExecutionContextManager.cs
- SharedRuntimeState.cs
- HttpPostedFileBase.cs
- HtmlHead.cs
- OpCellTreeNode.cs
- Expression.cs
- StatusBarDrawItemEvent.cs
- SHA1CryptoServiceProvider.cs
- TextContainerChangeEventArgs.cs
- IisTraceWebEventProvider.cs
- SafeSystemMetrics.cs
- CommonRemoteMemoryBlock.cs
- EllipseGeometry.cs
- ColumnPropertiesGroup.cs
- XmlCustomFormatter.cs
- BitmapCodecInfoInternal.cs
- SocketPermission.cs
- ProjectedSlot.cs
- StretchValidation.cs
- NamespaceInfo.cs
- BrowserDefinitionCollection.cs
- QueueProcessor.cs
- SchemaDeclBase.cs
- StringToken.cs
- XmlEncodedRawTextWriter.cs
- ObjectDataSourceStatusEventArgs.cs
- InvokeProviderWrapper.cs
- _StreamFramer.cs
- URIFormatException.cs
- CatalogZoneBase.cs
- Models.cs
- ForEachAction.cs
- XmlSchemaChoice.cs
- TextServicesPropertyRanges.cs
- Serializer.cs
- SecurityUtils.cs
- ObjectListDataBindEventArgs.cs
- FixUpCollection.cs
- SynchronizedMessageSource.cs
- ConfigurationPermission.cs
- BulletedList.cs
- Int32CollectionValueSerializer.cs
- Rule.cs
- PropertyDescriptorGridEntry.cs
- DependencyObjectType.cs
- RTLAwareMessageBox.cs
- TreeNode.cs
- LayoutUtils.cs
- DSACryptoServiceProvider.cs
- MemoryStream.cs
- UnmanagedBitmapWrapper.cs
- TranslateTransform.cs
- DesignerDataRelationship.cs
- ObjectDataSourceEventArgs.cs
- StandardBindingElement.cs
- XmlLanguage.cs
- AuthenticationException.cs
- LessThan.cs
- XmlSortKeyAccumulator.cs
- _AutoWebProxyScriptWrapper.cs
- XmlSiteMapProvider.cs
- MsmqReceiveParameters.cs
- GPPOINT.cs