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 / Metadata / Edm / NavigationProperty.cs / 1 / 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
- XmlWriterTraceListener.cs
- DockingAttribute.cs
- TextTreeUndo.cs
- SecurityProtocol.cs
- ByteKeyFrameCollection.cs
- NetworkAddressChange.cs
- MsmqBindingFilter.cs
- SimpleBitVector32.cs
- ToolboxComponentsCreatingEventArgs.cs
- RsaKeyGen.cs
- GeneralTransform2DTo3DTo2D.cs
- RepeatButtonAutomationPeer.cs
- TypeReference.cs
- PackageFilter.cs
- DecodeHelper.cs
- DataContract.cs
- StorageSetMapping.cs
- SystemWebCachingSectionGroup.cs
- AlphaSortedEnumConverter.cs
- UnsafeNetInfoNativeMethods.cs
- BitSet.cs
- FieldAccessException.cs
- ServiceElement.cs
- BidPrivateBase.cs
- GradientStop.cs
- Triplet.cs
- KnowledgeBase.cs
- GeneralTransform2DTo3DTo2D.cs
- webbrowsersite.cs
- OrderPreservingPipeliningSpoolingTask.cs
- SecurityUtils.cs
- ClientFormsAuthenticationMembershipProvider.cs
- FrameworkPropertyMetadata.cs
- RegexCode.cs
- GridViewAutomationPeer.cs
- ClientOptions.cs
- XamlFilter.cs
- __Error.cs
- AppSettingsReader.cs
- HexParser.cs
- xml.cs
- StorageModelBuildProvider.cs
- PageParser.cs
- StringComparer.cs
- NonParentingControl.cs
- ImageIndexConverter.cs
- CodeAttributeDeclarationCollection.cs
- SqlCharStream.cs
- TemplatedWizardStep.cs
- ConstructorExpr.cs
- TextDocumentView.cs
- SafeMILHandle.cs
- ByteStreamMessageEncoder.cs
- PageParserFilter.cs
- HelpInfo.cs
- TabletDevice.cs
- ReflectEventDescriptor.cs
- MDIWindowDialog.cs
- NavigationWindowAutomationPeer.cs
- StringBuilder.cs
- SqlPersonalizationProvider.cs
- MediaElement.cs
- ColorKeyFrameCollection.cs
- SafeFileHandle.cs
- DateTimePickerDesigner.cs
- AuthorizationSection.cs
- DownloadProgressEventArgs.cs
- FixedElement.cs
- Brush.cs
- MenuItemBinding.cs
- XPathExpr.cs
- EncoderParameters.cs
- Win32Native.cs
- MSHTMLHost.cs
- MonitorWrapper.cs
- ExceptionWrapper.cs
- FigureParaClient.cs
- ObjectTag.cs
- sqlmetadatafactory.cs
- ProjectedSlot.cs
- EmptyQuery.cs
- DesignerActionUI.cs
- _NtlmClient.cs
- PersistenceContext.cs
- ContentDefinition.cs
- BamlRecordReader.cs
- wgx_sdk_version.cs
- WebHttpBindingElement.cs
- Deflater.cs
- StreamSecurityUpgradeInitiatorBase.cs
- MulticastDelegate.cs
- ParameterToken.cs
- ChannelEndpointElementCollection.cs
- path.cs
- XmlEncodedRawTextWriter.cs
- WebHttpEndpoint.cs
- X509CertificateValidator.cs
- SharedStatics.cs
- FormsIdentity.cs
- EntityContainerEmitter.cs