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
- ColorConvertedBitmap.cs
- StylusLogic.cs
- ProbeMatchesMessageCD1.cs
- MD5CryptoServiceProvider.cs
- WebPartCloseVerb.cs
- x509utils.cs
- CompoundFileDeflateTransform.cs
- ComponentCollection.cs
- RadioButtonBaseAdapter.cs
- PassportAuthenticationEventArgs.cs
- DetailsViewModeEventArgs.cs
- WhitespaceReader.cs
- FormsAuthenticationCredentials.cs
- WindowsToolbar.cs
- DashStyle.cs
- LineInfo.cs
- MatrixTransform3D.cs
- DbProviderConfigurationHandler.cs
- ImageConverter.cs
- CodeAccessPermission.cs
- CubicEase.cs
- RegexRunner.cs
- storepermission.cs
- DataKeyArray.cs
- IFormattable.cs
- ResourceType.cs
- RuleCache.cs
- OneWayChannelListener.cs
- CategoryAttribute.cs
- CodeRemoveEventStatement.cs
- PageOutputColor.cs
- MenuItem.cs
- ScrollItemPatternIdentifiers.cs
- TreeNodeMouseHoverEvent.cs
- SkipQueryOptionExpression.cs
- PerformanceCounterCategory.cs
- ExportOptions.cs
- Rights.cs
- login.cs
- KeyGestureValueSerializer.cs
- Activator.cs
- ToolboxComponentsCreatingEventArgs.cs
- TabControlAutomationPeer.cs
- SafeRightsManagementQueryHandle.cs
- WebColorConverter.cs
- ThemeDirectoryCompiler.cs
- SerializationInfo.cs
- InputMethod.cs
- IERequestCache.cs
- DBNull.cs
- SchemaCollectionCompiler.cs
- FixedFlowMap.cs
- InstanceLockQueryResult.cs
- TableLayoutSettings.cs
- XmlSchemaAnyAttribute.cs
- WindowsNonControl.cs
- RadialGradientBrush.cs
- ParserExtension.cs
- HttpInputStream.cs
- StaticSiteMapProvider.cs
- StringSorter.cs
- GeneratedView.cs
- JsonClassDataContract.cs
- HttpHandlerAction.cs
- LogicalTreeHelper.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- InvokeGenerator.cs
- QueryAccessibilityHelpEvent.cs
- GeneralTransform2DTo3D.cs
- CryptographicAttribute.cs
- DbSetClause.cs
- ZoneButton.cs
- SQLMoney.cs
- KeyBinding.cs
- ClosureBinding.cs
- validation.cs
- EdmProperty.cs
- sqlcontext.cs
- ConfigurationManagerInternalFactory.cs
- itemelement.cs
- WindowExtensionMethods.cs
- xdrvalidator.cs
- Vector3DAnimation.cs
- PeerApplication.cs
- ProviderMetadataCachedInformation.cs
- CodeTypeMember.cs
- safelinkcollection.cs
- DataGridState.cs
- ProxyWebPartConnectionCollection.cs
- GlobalEventManager.cs
- TraceUtility.cs
- X509Utils.cs
- ZeroOpNode.cs
- XPathDocumentNavigator.cs
- GenerateHelper.cs
- Material.cs
- BufferedGraphicsManager.cs
- PasswordPropertyTextAttribute.cs
- NamedPermissionSet.cs
- GlyphTypeface.cs