Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- MetadataCacheItem.cs
- XamlToRtfParser.cs
- MdImport.cs
- TouchDevice.cs
- NavigationProgressEventArgs.cs
- StorageScalarPropertyMapping.cs
- SqlFunctionAttribute.cs
- ContentTextAutomationPeer.cs
- PropertyChangeTracker.cs
- QueryExpr.cs
- ToolStripControlHost.cs
- PassportAuthenticationModule.cs
- ObjectQueryProvider.cs
- DataBindEngine.cs
- DocumentReference.cs
- ZoneMembershipCondition.cs
- XmlTextEncoder.cs
- PersonalizationEntry.cs
- RectangleF.cs
- ComboBox.cs
- EntityDesignerDataSourceView.cs
- NavigationService.cs
- NamespaceMapping.cs
- PlacementWorkspace.cs
- wgx_commands.cs
- ConfigXmlSignificantWhitespace.cs
- SoapAttributeOverrides.cs
- HtmlContainerControl.cs
- iisPickupDirectory.cs
- TextTreeUndoUnit.cs
- IndentTextWriter.cs
- StandardOleMarshalObject.cs
- MemberDomainMap.cs
- HasCopySemanticsAttribute.cs
- CompoundFileIOPermission.cs
- HttpClientCredentialType.cs
- TemplateKey.cs
- HttpInputStream.cs
- DragEvent.cs
- ScrollProperties.cs
- SynchronizedPool.cs
- FloaterParagraph.cs
- Event.cs
- ToolStrip.cs
- InputReport.cs
- EpmTargetTree.cs
- DataGridViewTextBoxColumn.cs
- Error.cs
- XmlAtomErrorReader.cs
- QuaternionAnimation.cs
- SqlParameterCollection.cs
- ContainerFilterService.cs
- AnimationClockResource.cs
- FactoryMaker.cs
- CharStorage.cs
- XmlBoundElement.cs
- LineGeometry.cs
- SiteMapNode.cs
- SemaphoreFullException.cs
- ReadingWritingEntityEventArgs.cs
- CommandField.cs
- EmptyEnumerator.cs
- ViewKeyConstraint.cs
- CompilationLock.cs
- PageThemeBuildProvider.cs
- PointHitTestResult.cs
- HotSpotCollection.cs
- Style.cs
- _CookieModule.cs
- TextMetrics.cs
- BitmapEffectInput.cs
- SafeCoTaskMem.cs
- ObjectTypeMapping.cs
- XamlValidatingReader.cs
- ChannelSinkStacks.cs
- Random.cs
- Overlapped.cs
- EditorPartChrome.cs
- TransformCollection.cs
- listitem.cs
- DesignerCommandSet.cs
- ItemChangedEventArgs.cs
- ActivitySurrogateSelector.cs
- EmptyEnumerator.cs
- BamlRecordReader.cs
- DataGridRowAutomationPeer.cs
- MimeTextImporter.cs
- Vector.cs
- Triangle.cs
- RemotingSurrogateSelector.cs
- AsyncStreamReader.cs
- TypeUsageBuilder.cs
- EventMap.cs
- BrushProxy.cs
- CacheChildrenQuery.cs
- PolicyUnit.cs
- IERequestCache.cs
- ChannelManager.cs
- SignerInfo.cs
- ExceptionHelpers.cs