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
- Events.cs
- StylusCollection.cs
- FactoryRecord.cs
- wgx_sdk_version.cs
- CustomAttribute.cs
- HttpFileCollection.cs
- HandlerFactoryWrapper.cs
- MembershipPasswordException.cs
- CatalogPart.cs
- WSFederationHttpSecurityElement.cs
- InfoCardBinaryReader.cs
- IncrementalReadDecoders.cs
- DocumentsTrace.cs
- PageParserFilter.cs
- BinaryMessageFormatter.cs
- NodeFunctions.cs
- MouseDevice.cs
- NativeMethods.cs
- ManagementQuery.cs
- NonParentingControl.cs
- AsymmetricAlgorithm.cs
- DataGridViewCellCollection.cs
- ScriptModule.cs
- PropertyFilterAttribute.cs
- Quaternion.cs
- ComponentConverter.cs
- Timer.cs
- LayoutInformation.cs
- RuleSettingsCollection.cs
- DispatchWrapper.cs
- WebCategoryAttribute.cs
- NGCUIElementCollectionSerializerAsync.cs
- TableChangeProcessor.cs
- HScrollProperties.cs
- SlotInfo.cs
- Property.cs
- FormViewUpdateEventArgs.cs
- Point3DIndependentAnimationStorage.cs
- CorrelationTokenInvalidatedHandler.cs
- CodeExporter.cs
- EditorPart.cs
- PersonalizableAttribute.cs
- EncoderExceptionFallback.cs
- AttributeXamlType.cs
- externdll.cs
- SQLBytesStorage.cs
- EntityDataSourceWrapperCollection.cs
- ArrowControl.xaml.cs
- OdbcTransaction.cs
- WebPartManager.cs
- IisTraceListener.cs
- TransformerConfigurationWizardBase.cs
- UidPropertyAttribute.cs
- SearchExpression.cs
- listitem.cs
- GeneralTransform3DGroup.cs
- HtmlInputHidden.cs
- ContainerAction.cs
- ScriptingJsonSerializationSection.cs
- ProfilePropertySettingsCollection.cs
- SerializationSectionGroup.cs
- AlignmentYValidation.cs
- HelpExampleGenerator.cs
- ProcessModelInfo.cs
- TextTreeTextBlock.cs
- safelinkcollection.cs
- ProxyDataContractResolver.cs
- TimeoutException.cs
- CounterSample.cs
- SaveFileDialog.cs
- SystemColors.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ToolStripSplitStackLayout.cs
- TreeNodeBindingCollection.cs
- XmlAttributeProperties.cs
- CodeDesigner.cs
- UndirectedGraph.cs
- EntityDataSourceDesigner.cs
- NavigatorInput.cs
- OdbcRowUpdatingEvent.cs
- dsa.cs
- ResourceManager.cs
- ParallelTimeline.cs
- ListViewItemCollectionEditor.cs
- SimpleHandlerBuildProvider.cs
- WindowsToolbarItemAsMenuItem.cs
- TableLayoutColumnStyleCollection.cs
- TextBox.cs
- XmlSchemaExporter.cs
- PresentationAppDomainManager.cs
- PerformanceCounterPermissionEntryCollection.cs
- DataExpression.cs
- MouseButton.cs
- TextProperties.cs
- ObjectItemCachedAssemblyLoader.cs
- BuildDependencySet.cs
- QilUnary.cs
- SwitchElementsCollection.cs
- XPathMessageFilterTable.cs
- SafeCryptoHandles.cs