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
- StructuralType.cs
- DictionaryContent.cs
- GridViewCancelEditEventArgs.cs
- FamilyMapCollection.cs
- SmiEventSink_DeferedProcessing.cs
- PerformanceCounterManager.cs
- DesignerDataColumn.cs
- SmtpFailedRecipientsException.cs
- ResourceDictionaryCollection.cs
- ListItemCollection.cs
- CachedPathData.cs
- SqlDependency.cs
- EnumUnknown.cs
- AssemblyHelper.cs
- SR.Designer.cs
- WebSysDescriptionAttribute.cs
- WebBrowserSiteBase.cs
- Point3DAnimationBase.cs
- dsa.cs
- CustomValidator.cs
- CompilerParameters.cs
- PropagatorResult.cs
- HyperLink.cs
- PassportAuthenticationEventArgs.cs
- XmlArrayItemAttribute.cs
- LoginUtil.cs
- ButtonBase.cs
- FunctionQuery.cs
- MarkupExtensionParser.cs
- StringFunctions.cs
- StringExpressionSet.cs
- IdentityNotMappedException.cs
- ProfileEventArgs.cs
- RegexReplacement.cs
- QuaternionAnimation.cs
- Decimal.cs
- DesignerTransaction.cs
- PortCache.cs
- GPRECTF.cs
- DecimalConverter.cs
- PreviewKeyDownEventArgs.cs
- IDispatchConstantAttribute.cs
- Int32.cs
- ComponentChangedEvent.cs
- FrameworkEventSource.cs
- EntityCommandDefinition.cs
- PathSegmentCollection.cs
- AssemblyInfo.cs
- PtsHost.cs
- TrackingRecordPreFilter.cs
- SecureStringHasher.cs
- WebBrowserProgressChangedEventHandler.cs
- SiteMapHierarchicalDataSourceView.cs
- CustomErrorsSection.cs
- CalendarDayButton.cs
- ToolStripDropTargetManager.cs
- PackageRelationshipCollection.cs
- RelationshipEnd.cs
- HwndSubclass.cs
- Line.cs
- TreeNodeStyle.cs
- TreeNodeConverter.cs
- FrameAutomationPeer.cs
- TypeUnloadedException.cs
- XmlReaderDelegator.cs
- SymLanguageVendor.cs
- XmlLangPropertyAttribute.cs
- RemotingHelper.cs
- EventManager.cs
- DynamicRendererThreadManager.cs
- StringReader.cs
- IndependentAnimationStorage.cs
- Win32KeyboardDevice.cs
- WebControlAdapter.cs
- CustomBindingElement.cs
- PublisherIdentityPermission.cs
- ValueType.cs
- HMACSHA256.cs
- IntPtr.cs
- ComplusEndpointConfigContainer.cs
- RelatedPropertyManager.cs
- PartitionerStatic.cs
- MethodBody.cs
- SystemIPGlobalStatistics.cs
- Line.cs
- DbDataRecord.cs
- DesignerSerializationManager.cs
- SQLCharsStorage.cs
- WmlMobileTextWriter.cs
- StagingAreaInputItem.cs
- ContractNamespaceAttribute.cs
- ClientRolePrincipal.cs
- RectangleHotSpot.cs
- DataObjectMethodAttribute.cs
- ScriptResourceDefinition.cs
- PageCatalogPart.cs
- ISCIIEncoding.cs
- UidManager.cs
- WindowsClientCredential.cs
- ServiceDescriptionSerializer.cs