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
- SendMailErrorEventArgs.cs
- TiffBitmapDecoder.cs
- XmlFileEditor.cs
- NodeFunctions.cs
- ArrayElementGridEntry.cs
- XmlValidatingReader.cs
- RawStylusActions.cs
- Effect.cs
- SiteOfOriginPart.cs
- ExpanderAutomationPeer.cs
- UpdatePanelControlTrigger.cs
- InputBinder.cs
- SoapReflectionImporter.cs
- VisualBasicSettings.cs
- SynchronizedPool.cs
- CaseCqlBlock.cs
- SaveFileDialog.cs
- EventProxy.cs
- FileSystemEventArgs.cs
- RelationshipEnd.cs
- HtmlLink.cs
- XmlText.cs
- ExtenderControl.cs
- EUCJPEncoding.cs
- ComPlusContractBehavior.cs
- ImageCodecInfo.cs
- ObjectDataProvider.cs
- RtfFormatStack.cs
- InternalSafeNativeMethods.cs
- RegexWorker.cs
- SelectionItemPattern.cs
- DataServiceQueryProvider.cs
- TemplateKeyConverter.cs
- AlphaSortedEnumConverter.cs
- XpsS0ValidatingLoader.cs
- StorageMappingFragment.cs
- SQLMembershipProvider.cs
- Attachment.cs
- Setter.cs
- WsdlInspector.cs
- ItemsControl.cs
- XmlIterators.cs
- StatusBarItem.cs
- StateDesigner.CommentLayoutGlyph.cs
- TreeIterator.cs
- ListItemCollection.cs
- XPathBuilder.cs
- BlurBitmapEffect.cs
- TypeDependencyAttribute.cs
- SafeLibraryHandle.cs
- ImageListImageEditor.cs
- SqlReorderer.cs
- TransformerInfo.cs
- CapabilitiesSection.cs
- BinaryNegotiation.cs
- Material.cs
- WebPart.cs
- ObjectHandle.cs
- _CookieModule.cs
- AssemblyAttributesGoHere.cs
- Decorator.cs
- StaticExtensionConverter.cs
- TextEditorParagraphs.cs
- FunctionDescription.cs
- mediaeventshelper.cs
- MailMessageEventArgs.cs
- DataGridViewCellValueEventArgs.cs
- WebPartUserCapability.cs
- UrlAuthFailedErrorFormatter.cs
- ListManagerBindingsCollection.cs
- SqlRemoveConstantOrderBy.cs
- ListItemConverter.cs
- HostedHttpContext.cs
- AsyncPostBackErrorEventArgs.cs
- COM2IDispatchConverter.cs
- SqlDataSourceWizardForm.cs
- UIElementCollection.cs
- ObjectListCommandEventArgs.cs
- SqlUDTStorage.cs
- SqlClientWrapperSmiStreamChars.cs
- EditorPart.cs
- httpapplicationstate.cs
- FilterableAttribute.cs
- cryptoapiTransform.cs
- WebPartMovingEventArgs.cs
- Encoding.cs
- FixedSOMContainer.cs
- FixedTextBuilder.cs
- PublisherIdentityPermission.cs
- XamlSerializer.cs
- ComponentChangingEvent.cs
- AuthenticatedStream.cs
- ProfileGroupSettingsCollection.cs
- ObjectDataSourceFilteringEventArgs.cs
- UserControl.cs
- EntityContainerEntitySet.cs
- AsyncDataRequest.cs
- ReceiveContext.cs
- XPathPatternParser.cs
- TableStyle.cs