Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- Expression.cs
- ArrayElementGridEntry.cs
- PolyLineSegment.cs
- QualificationDataItem.cs
- DataGrid.cs
- ComponentChangingEvent.cs
- XmlCodeExporter.cs
- CodeCastExpression.cs
- ObservableCollection.cs
- assertwrapper.cs
- MetaDataInfo.cs
- ReliableSessionBindingElement.cs
- SoapElementAttribute.cs
- StrongBox.cs
- DataContext.cs
- ResourceBinder.cs
- LinqDataSourceStatusEventArgs.cs
- Grant.cs
- EUCJPEncoding.cs
- DaylightTime.cs
- FieldReference.cs
- ImageFormat.cs
- QueryAccessibilityHelpEvent.cs
- XmlDocumentFragment.cs
- DeliveryRequirementsAttribute.cs
- GetWinFXPath.cs
- MarkupExtensionReturnTypeAttribute.cs
- QueryExpression.cs
- GlobalizationAssembly.cs
- DataGridViewRowHeaderCell.cs
- XmlMembersMapping.cs
- BevelBitmapEffect.cs
- BindValidationContext.cs
- CombinedGeometry.cs
- GenericEnumConverter.cs
- CheckBoxBaseAdapter.cs
- Pair.cs
- CodeTypeDelegate.cs
- EntityDataSourceContainerNameConverter.cs
- ApplicationDirectoryMembershipCondition.cs
- SQLDecimalStorage.cs
- UnaryNode.cs
- HashSet.cs
- XsltArgumentList.cs
- Ticks.cs
- MessageBox.cs
- XmlSubtreeReader.cs
- AsyncOperation.cs
- QueryTreeBuilder.cs
- Addressing.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- ListViewCommandEventArgs.cs
- BufferedResponseStream.cs
- BrowserTree.cs
- SortedList.cs
- InfiniteTimeSpanConverter.cs
- OutputCacheProfileCollection.cs
- ScrollPattern.cs
- Helpers.cs
- ComponentChangingEvent.cs
- Win32NamedPipes.cs
- ProcessManager.cs
- RequestContextBase.cs
- Duration.cs
- SecurityKeyIdentifierClause.cs
- DataColumnChangeEvent.cs
- ListControlDesigner.cs
- ConfigurationSectionGroupCollection.cs
- MouseEvent.cs
- documentsequencetextcontainer.cs
- MetricEntry.cs
- PageContent.cs
- CultureSpecificCharacterBufferRange.cs
- FrameSecurityDescriptor.cs
- SqlConnectionHelper.cs
- DES.cs
- figurelengthconverter.cs
- ObjectDataSourceView.cs
- SafeArrayRankMismatchException.cs
- FactoryGenerator.cs
- ContentElementAutomationPeer.cs
- SQLSingle.cs
- SoapUnknownHeader.cs
- XmlConverter.cs
- DataSourceConverter.cs
- WebPartDescriptionCollection.cs
- DriveInfo.cs
- TableLayoutPanelResizeGlyph.cs
- ImageCollectionEditor.cs
- EntityParameterCollection.cs
- TableLayoutPanel.cs
- CodeArrayIndexerExpression.cs
- KeyTimeConverter.cs
- CallbackException.cs
- XmlNode.cs
- Composition.cs
- CodeCommentStatementCollection.cs
- SchemaSetCompiler.cs
- EdmItemCollection.OcAssemblyCache.cs
- BigIntegerStorage.cs