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
- WindowsScroll.cs
- XmlMapping.cs
- DbCommandDefinition.cs
- WmlLabelAdapter.cs
- MulticastOption.cs
- _HeaderInfoTable.cs
- FileLevelControlBuilderAttribute.cs
- ErrorFormatter.cs
- BamlResourceDeserializer.cs
- PagedDataSource.cs
- StretchValidation.cs
- RenameRuleObjectDialog.Designer.cs
- ProtocolsConfigurationHandler.cs
- SecUtil.cs
- EmptyEnumerator.cs
- SyntaxCheck.cs
- CollectionViewGroup.cs
- UrlPath.cs
- PrintPageEvent.cs
- SemanticResultValue.cs
- EditBehavior.cs
- ADMembershipUser.cs
- EncoderReplacementFallback.cs
- SqlConnectionPoolProviderInfo.cs
- XmlNamespaceManager.cs
- RedBlackList.cs
- StrongNameIdentityPermission.cs
- mediaeventshelper.cs
- DesignSurfaceCollection.cs
- CodeDirectiveCollection.cs
- Point4D.cs
- ObjRef.cs
- externdll.cs
- EncodingTable.cs
- ClientProxyGenerator.cs
- SystemIPAddressInformation.cs
- SoapMessage.cs
- ToolTipService.cs
- Serializer.cs
- Atom10FormatterFactory.cs
- CertificateManager.cs
- UInt32.cs
- EditorResources.cs
- TypographyProperties.cs
- TripleDES.cs
- InstanceData.cs
- RootAction.cs
- X509CertificateCollection.cs
- Listbox.cs
- CompilerCollection.cs
- Panel.cs
- PreservationFileReader.cs
- VerticalAlignConverter.cs
- ConfigsHelper.cs
- GridViewUpdatedEventArgs.cs
- Typography.cs
- XmlDataProvider.cs
- TextOptions.cs
- MeasureItemEvent.cs
- RowCache.cs
- DefaultTextStore.cs
- HorizontalAlignConverter.cs
- RuntimeConfig.cs
- ComNativeDescriptor.cs
- oledbconnectionstring.cs
- PipelineModuleStepContainer.cs
- FileDialogCustomPlaces.cs
- TypeConverterHelper.cs
- webeventbuffer.cs
- ListManagerBindingsCollection.cs
- XmlQueryStaticData.cs
- SoapTransportImporter.cs
- SystemIPGlobalProperties.cs
- MarshalDirectiveException.cs
- CaseStatement.cs
- ArrangedElementCollection.cs
- CounterCreationDataConverter.cs
- FilteredSchemaElementLookUpTable.cs
- ClaimTypeElement.cs
- FlowDocumentPage.cs
- AtlasWeb.Designer.cs
- TreeNodeStyle.cs
- Message.cs
- TabControl.cs
- ExpandSegment.cs
- ExtractCollection.cs
- Int16AnimationBase.cs
- XmlSerializerFactory.cs
- MissingMethodException.cs
- DataSourceControlBuilder.cs
- WrapPanel.cs
- AssemblyResourceLoader.cs
- DecoderFallback.cs
- StateRuntime.cs
- PropertyOverridesDialog.cs
- CodeCompiler.cs
- SerializationFieldInfo.cs
- ForwardPositionQuery.cs
- OracleMonthSpan.cs
- ADConnectionHelper.cs