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
- SelectedGridItemChangedEvent.cs
- PreservationFileWriter.cs
- ConfigXmlText.cs
- Delegate.cs
- FileAuthorizationModule.cs
- BezierSegment.cs
- CallbackWrapper.cs
- PointLightBase.cs
- DoubleCollectionConverter.cs
- BamlLocalizableResourceKey.cs
- HwndHost.cs
- SqlComparer.cs
- RequiredFieldValidator.cs
- ValidationSummary.cs
- XPathParser.cs
- MediaContextNotificationWindow.cs
- XamlPointCollectionSerializer.cs
- DetailsViewUpdateEventArgs.cs
- FilterableAttribute.cs
- FileNameEditor.cs
- DBSchemaRow.cs
- TextChangedEventArgs.cs
- MediaCommands.cs
- CellParaClient.cs
- AxisAngleRotation3D.cs
- DefaultWorkflowLoaderService.cs
- pingexception.cs
- LogLogRecordEnumerator.cs
- ParserOptions.cs
- ResourceWriter.cs
- DiagnosticsConfigurationHandler.cs
- WebChannelFactory.cs
- RtfToken.cs
- TypedRowHandler.cs
- SvcMapFileLoader.cs
- _LocalDataStore.cs
- ApplicationServiceManager.cs
- GPPOINT.cs
- SchemaDeclBase.cs
- EntityDesignerUtils.cs
- TypeGeneratedEventArgs.cs
- recordstatefactory.cs
- BitStack.cs
- MimeMapping.cs
- ComponentEvent.cs
- BaseParagraph.cs
- UrlMappingCollection.cs
- RegistryKey.cs
- DataException.cs
- SqlUserDefinedAggregateAttribute.cs
- ScrollableControl.cs
- LinearGradientBrush.cs
- Constants.cs
- XsdDuration.cs
- _NegoStream.cs
- EntityDataSourceConfigureObjectContext.cs
- ValidationSummary.cs
- _IPv6Address.cs
- MultipleViewProviderWrapper.cs
- VarInfo.cs
- TrackingLocation.cs
- SafeNativeMethodsOther.cs
- TypeDefinition.cs
- ClientSponsor.cs
- CodeLabeledStatement.cs
- SpellerStatusTable.cs
- _ShellExpression.cs
- RelatedView.cs
- Vector3DIndependentAnimationStorage.cs
- RepeatButtonAutomationPeer.cs
- OutputCache.cs
- TableLayoutSettings.cs
- WriterOutput.cs
- ProxyGenerationError.cs
- HitTestWithGeometryDrawingContextWalker.cs
- mongolianshape.cs
- XmlDesigner.cs
- EntityCommandDefinition.cs
- ImageSource.cs
- InkPresenterAutomationPeer.cs
- DataSourceListEditor.cs
- FormsAuthenticationUserCollection.cs
- UserControl.cs
- EntityContainerEntitySet.cs
- TypedReference.cs
- HandledEventArgs.cs
- ConfigPathUtility.cs
- NativeMethods.cs
- SettingsPropertyValue.cs
- Stacktrace.cs
- CqlLexer.cs
- BeginStoryboard.cs
- BehaviorService.cs
- State.cs
- RelationshipFixer.cs
- XmlTextReaderImplHelpers.cs
- XmlSchemaRedefine.cs
- CodeGotoStatement.cs
- SequentialUshortCollection.cs
- WindowsListViewGroupSubsetLink.cs