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
- XmlILModule.cs
- ReadingWritingEntityEventArgs.cs
- EntityWrapper.cs
- HtmlForm.cs
- ColorTransform.cs
- DataDocumentXPathNavigator.cs
- SvcFileManager.cs
- SingleSelectRootGridEntry.cs
- HostExecutionContextManager.cs
- CodePropertyReferenceExpression.cs
- ConsumerConnectionPoint.cs
- Peer.cs
- hwndwrapper.cs
- RepeaterItemCollection.cs
- TextTreeText.cs
- IisTraceListener.cs
- oledbmetadatacollectionnames.cs
- MsmqAppDomainProtocolHandler.cs
- QuadTree.cs
- BoundPropertyEntry.cs
- TreeViewImageGenerator.cs
- loginstatus.cs
- TextTreeExtractElementUndoUnit.cs
- GiveFeedbackEventArgs.cs
- NominalTypeEliminator.cs
- BaseEntityWrapper.cs
- CodeTypeMember.cs
- SqlInternalConnectionSmi.cs
- CacheSection.cs
- OpenFileDialog.cs
- MenuItem.cs
- WebScriptServiceHost.cs
- IndexedEnumerable.cs
- DesignTimeXamlWriter.cs
- Fault.cs
- WindowsGraphicsCacheManager.cs
- ListComponentEditor.cs
- WaveHeader.cs
- XPathNodeHelper.cs
- UrlPropertyAttribute.cs
- ProcessRequestArgs.cs
- ReadOnlyDictionary.cs
- XmlEntityReference.cs
- ConfigXmlText.cs
- TypeUsage.cs
- ReverseInheritProperty.cs
- SmtpNegotiateAuthenticationModule.cs
- Cell.cs
- WebConvert.cs
- TypedRowHandler.cs
- UnitySerializationHolder.cs
- ACL.cs
- ReachSerializerAsync.cs
- DataTableClearEvent.cs
- FolderBrowserDialog.cs
- SvcMapFileLoader.cs
- IriParsingElement.cs
- URLMembershipCondition.cs
- ProtocolsConfiguration.cs
- InternalPermissions.cs
- RotationValidation.cs
- XsltCompileContext.cs
- BoundPropertyEntry.cs
- NullableLongMinMaxAggregationOperator.cs
- AttachedAnnotationChangedEventArgs.cs
- MenuEventArgs.cs
- XPathNodeInfoAtom.cs
- RadioButton.cs
- _AcceptOverlappedAsyncResult.cs
- GraphicsPath.cs
- InfoCardBaseException.cs
- AssociationSet.cs
- XmlIlVisitor.cs
- ArgumentDesigner.xaml.cs
- ScrollItemProviderWrapper.cs
- SqlBooleanizer.cs
- PasswordBox.cs
- PrimaryKeyTypeConverter.cs
- SortDescription.cs
- ComplexBindingPropertiesAttribute.cs
- DirectoryNotFoundException.cs
- SuppressMergeCheckAttribute.cs
- Deflater.cs
- WsatRegistrationHeader.cs
- BuildProviderAppliesToAttribute.cs
- StorageSetMapping.cs
- EntitySqlQueryCacheEntry.cs
- ActivityFunc.cs
- MiniLockedBorderGlyph.cs
- TextHidden.cs
- __Filters.cs
- ResXResourceSet.cs
- Int32EqualityComparer.cs
- LineServicesCallbacks.cs
- DropDownList.cs
- ProtocolViolationException.cs
- EdmTypeAttribute.cs
- PageVisual.cs
- Char.cs
- HostedTcpTransportManager.cs