Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / NavigationProperty.cs / 2 / 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
- GCHandleCookieTable.cs
- DataListCommandEventArgs.cs
- CollectionViewGroup.cs
- DateTimeValueSerializerContext.cs
- WeakHashtable.cs
- DurableErrorHandler.cs
- TokenCreationParameter.cs
- ConstructorExpr.cs
- HostedNamedPipeTransportManager.cs
- HttpStaticObjectsCollectionBase.cs
- GridViewRow.cs
- BaseProcessor.cs
- DataGridColumnFloatingHeader.cs
- CheckoutException.cs
- ZipIOLocalFileBlock.cs
- DefaultMemberAttribute.cs
- ResourceDescriptionAttribute.cs
- AutoFocusStyle.xaml.cs
- Win32Exception.cs
- XsltOutput.cs
- indexingfiltermarshaler.cs
- SchemaExporter.cs
- AspNetSynchronizationContext.cs
- ListBase.cs
- DoubleCollectionConverter.cs
- ProcessInfo.cs
- ExpressionsCollectionEditor.cs
- NamespaceList.cs
- HuffCodec.cs
- StylusShape.cs
- DataGridCheckBoxColumn.cs
- DbFunctionCommandTree.cs
- DispatcherFrame.cs
- DataFieldConverter.cs
- EarlyBoundInfo.cs
- RectAnimationUsingKeyFrames.cs
- TableRowCollection.cs
- SystemException.cs
- ExtenderControl.cs
- WorkflowCompensationBehavior.cs
- TextElement.cs
- PageCache.cs
- BasePropertyDescriptor.cs
- VariableQuery.cs
- FlowDocumentPage.cs
- TemplatedWizardStep.cs
- IArgumentProvider.cs
- PointAnimationUsingPath.cs
- Transform3D.cs
- XmlSignatureManifest.cs
- ToolStripDropDownClosingEventArgs.cs
- SByteConverter.cs
- CacheRequest.cs
- LinkedDataMemberFieldEditor.cs
- CaseInsensitiveOrdinalStringComparer.cs
- WebPartDisplayModeEventArgs.cs
- FontStretches.cs
- MetafileHeaderWmf.cs
- ReadOnlyDataSource.cs
- ConstraintConverter.cs
- ToolStripItemDesigner.cs
- SecurityContext.cs
- WebBrowserHelper.cs
- SerializationAttributes.cs
- ObjectStorage.cs
- Menu.cs
- GeneratedView.cs
- PackWebRequest.cs
- SqlDataSourceView.cs
- BaseUriHelper.cs
- EncodingTable.cs
- CompoundFileStorageReference.cs
- connectionpool.cs
- EventToken.cs
- NodeFunctions.cs
- WebScriptEnablingElement.cs
- ArcSegment.cs
- CheckableControlBaseAdapter.cs
- BindingNavigatorDesigner.cs
- CodePageEncoding.cs
- CodeDomConfigurationHandler.cs
- PageSettings.cs
- LongValidatorAttribute.cs
- PrintPreviewGraphics.cs
- ActivityCodeDomSerializationManager.cs
- FileDialogCustomPlace.cs
- WebPartConnectionsEventArgs.cs
- HTMLTextWriter.cs
- CustomErrorsSection.cs
- PKCS1MaskGenerationMethod.cs
- AnnotationAuthorChangedEventArgs.cs
- Int32CAMarshaler.cs
- PackageRelationship.cs
- ToolTipService.cs
- DropDownHolder.cs
- PrintPreviewControl.cs
- _RequestCacheProtocol.cs
- ColorContextHelper.cs
- Int32Storage.cs
- BinHexEncoder.cs