Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / NavigationProperty.cs / 2 / NavigationProperty.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- using System.Collections.Generic; using System.Data.Common; using System.Diagnostics; using System.Threading; namespace System.Data.Metadata.Edm { ////// Represent the edm navigation property class /// public sealed class NavigationProperty : EdmMember { #region Constructors ////// Initializes a new instance of the navigation property class /// /// name of the navigation property /// TypeUsage object containing the navigation property type and its facets ///Thrown if name or typeUsage arguments are null ///Thrown if name argument is empty string internal NavigationProperty(string name, TypeUsage typeUsage) : base(name, typeUsage) { EntityUtil.CheckStringArgument(name, "name"); EntityUtil.GenericCheckArgumentNull(typeUsage, "typeUsage"); } ////// Initializes a new OSpace instance of the property class /// /// name of the property /// TypeUsage object containing the property type and its facets /// for the property internal NavigationProperty(string name, TypeUsage typeUsage, System.Reflection.PropertyInfo propertyInfo) : this(name, typeUsage) { System.Diagnostics.Debug.Assert(name == propertyInfo.Name, "different PropertyName?"); if (null != propertyInfo) { System.Reflection.MethodInfo method; method = propertyInfo.GetGetMethod(); PropertyGetterHandle = ((null != method) ? method.MethodHandle : default(System.RuntimeMethodHandle)); } } #endregion ////// Returns the kind of the type /// public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.NavigationProperty; } } #region Fields internal const string RelationshipTypeNamePropertyName = "RelationshipType"; internal const string ToEndMemberNamePropertyName = "ToEndMember"; private RelationshipType _relationshipType; private RelationshipEndMember _toEndMember; private RelationshipEndMember _fromEndMember; ///Store the handle, allowing the PropertyInfo/MethodInfo/Type references to be GC'd internal readonly System.RuntimeMethodHandle PropertyGetterHandle; ///cached dynamic method to get the property value from a CLR instance private Func
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MimeFormImporter.cs
- SingleObjectCollection.cs
- DataFormat.cs
- ColumnTypeConverter.cs
- EventBuilder.cs
- Int16AnimationBase.cs
- SweepDirectionValidation.cs
- HiddenFieldPageStatePersister.cs
- SHA512Managed.cs
- DataGridCellAutomationPeer.cs
- StateWorkerRequest.cs
- VariantWrapper.cs
- InProcStateClientManager.cs
- OleDbCommandBuilder.cs
- Menu.cs
- Span.cs
- ZoneLinkButton.cs
- ConsumerConnectionPointCollection.cs
- CellRelation.cs
- StylusPointProperties.cs
- BmpBitmapEncoder.cs
- HttpInputStream.cs
- ConnectionManagementSection.cs
- LinkConverter.cs
- XmlSchemaFacet.cs
- InstanceData.cs
- UIElementIsland.cs
- ButtonBaseDesigner.cs
- DataComponentGenerator.cs
- InputScopeAttribute.cs
- TreeNodeMouseHoverEvent.cs
- DummyDataSource.cs
- StringStorage.cs
- TextBoxRenderer.cs
- PenThread.cs
- MemoryFailPoint.cs
- QuaternionValueSerializer.cs
- _UncName.cs
- LockedBorderGlyph.cs
- UIElementParagraph.cs
- BoundField.cs
- DataRelationPropertyDescriptor.cs
- ExpressionStringBuilder.cs
- AppPool.cs
- UInt32Converter.cs
- StrongNameUtility.cs
- UxThemeWrapper.cs
- SmtpException.cs
- CodeCompileUnit.cs
- List.cs
- KoreanCalendar.cs
- AudioSignalProblemOccurredEventArgs.cs
- SqlDataSourceEnumerator.cs
- TextRangeSerialization.cs
- SettingsBase.cs
- ComboBox.cs
- WebChannelFactory.cs
- WebPartAuthorizationEventArgs.cs
- DockAndAnchorLayout.cs
- DataColumnCollection.cs
- XhtmlBasicSelectionListAdapter.cs
- ProcessStartInfo.cs
- ConfigurationLocationCollection.cs
- WebPartConnectionsConnectVerb.cs
- MissingMemberException.cs
- ReadWriteSpinLock.cs
- VectorAnimationUsingKeyFrames.cs
- MoveSizeWinEventHandler.cs
- ConfigXmlElement.cs
- XPathNode.cs
- cookiecollection.cs
- SubMenuStyleCollection.cs
- BamlRecords.cs
- FixedPosition.cs
- PeerCollaboration.cs
- PeerNameResolver.cs
- CodeMemberField.cs
- ResourceManager.cs
- ResourcePool.cs
- WebPartConnectVerb.cs
- securitycriticaldata.cs
- BooleanConverter.cs
- WebBrowsableAttribute.cs
- MsmqBindingBase.cs
- Quaternion.cs
- Document.cs
- WindowsFormsLinkLabel.cs
- XmlSchemaAnnotated.cs
- SoapDocumentServiceAttribute.cs
- Stacktrace.cs
- Visual3DCollection.cs
- NameSpaceEvent.cs
- SmtpNetworkElement.cs
- ZipFileInfo.cs
- XmlEncodedRawTextWriter.cs
- SerializationEventsCache.cs
- Calendar.cs
- CustomMenuItemCollection.cs
- ServicePointManager.cs
- GlyphShapingProperties.cs