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
- TextDecoration.cs
- XmlNodeReader.cs
- latinshape.cs
- IUnknownConstantAttribute.cs
- PanelStyle.cs
- DataGridViewRowsAddedEventArgs.cs
- IndentedTextWriter.cs
- DbReferenceCollection.cs
- ComponentEvent.cs
- LocalIdCollection.cs
- MulticastNotSupportedException.cs
- WebZone.cs
- ImageSourceConverter.cs
- EntityReference.cs
- GeneralTransform3DGroup.cs
- Atom10FormatterFactory.cs
- Quad.cs
- RegistryPermission.cs
- AttributeUsageAttribute.cs
- TemplatePartAttribute.cs
- XmlNode.cs
- ParallelTimeline.cs
- PixelShader.cs
- Binding.cs
- SelectionEditor.cs
- ResourceAssociationSetEnd.cs
- SqlDataSourceSelectingEventArgs.cs
- PageRanges.cs
- AsymmetricKeyExchangeFormatter.cs
- TextCollapsingProperties.cs
- GroupQuery.cs
- DecimalConstantAttribute.cs
- SlotInfo.cs
- XmlILStorageConverter.cs
- Visual.cs
- DetailsViewInsertedEventArgs.cs
- ConfigurationSchemaErrors.cs
- PreloadHost.cs
- XamlTemplateSerializer.cs
- TableLayout.cs
- SharedDp.cs
- ToolStripDropDown.cs
- CharAnimationBase.cs
- DateTimeConstantAttribute.cs
- TimelineCollection.cs
- XsdCachingReader.cs
- PropertyEntry.cs
- XmlChildNodes.cs
- Polyline.cs
- ReflectionTypeLoadException.cs
- BitmapSourceSafeMILHandle.cs
- XamlSerializerUtil.cs
- TableDesigner.cs
- ECDsa.cs
- MethodBody.cs
- SubMenuStyleCollection.cs
- SystemFonts.cs
- JsonObjectDataContract.cs
- DataGridToolTip.cs
- ToolboxBitmapAttribute.cs
- StatusStrip.cs
- ProgressPage.cs
- versioninfo.cs
- DesignObjectWrapper.cs
- PeerCustomResolverSettings.cs
- GlyphRun.cs
- brushes.cs
- UnconditionalPolicy.cs
- WebPartCancelEventArgs.cs
- ConversionContext.cs
- infer.cs
- RegistryPermission.cs
- DefaultTextStoreTextComposition.cs
- UIServiceHelper.cs
- DistributedTransactionPermission.cs
- Color.cs
- DataGridColumnCollection.cs
- DataGridViewCellParsingEventArgs.cs
- WindowsListBox.cs
- Types.cs
- tibetanshape.cs
- ScrollPatternIdentifiers.cs
- FloatMinMaxAggregationOperator.cs
- DataListItemCollection.cs
- ColumnCollection.cs
- PerformanceCounterCategory.cs
- PieceDirectory.cs
- ProcessModelSection.cs
- path.cs
- NavigateEvent.cs
- WebPartChrome.cs
- StrongName.cs
- MsmqIntegrationValidationBehavior.cs
- StatusBarPanelClickEvent.cs
- UserControl.cs
- WindowProviderWrapper.cs
- Accessible.cs
- XmlIlTypeHelper.cs
- HitTestParameters3D.cs
- IODescriptionAttribute.cs