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
- ToolStripDropDown.cs
- DynamicDataRouteHandler.cs
- ScaleTransform3D.cs
- BoundConstants.cs
- SqlDataSource.cs
- BaseValidator.cs
- GridItemPatternIdentifiers.cs
- Rule.cs
- ControlEvent.cs
- SHA256Managed.cs
- TransformerInfoCollection.cs
- PropertyMetadata.cs
- _HelperAsyncResults.cs
- TabRenderer.cs
- LinkUtilities.cs
- COM2Enum.cs
- CalendarAutoFormat.cs
- RayMeshGeometry3DHitTestResult.cs
- WebPartsSection.cs
- Cursors.cs
- Thumb.cs
- FocusWithinProperty.cs
- DateTimeUtil.cs
- UnsafeNativeMethods.cs
- XmlSchemaObjectCollection.cs
- SqlDataReader.cs
- Transform.cs
- TransformPatternIdentifiers.cs
- OutputCache.cs
- RadioButtonList.cs
- InvalidOperationException.cs
- ComboBoxItem.cs
- RawStylusSystemGestureInputReport.cs
- PersonalizationProvider.cs
- XmlSerializerObjectSerializer.cs
- BooleanAnimationBase.cs
- SymLanguageVendor.cs
- EmbeddedMailObjectsCollection.cs
- HttpMethodAttribute.cs
- TrustManagerPromptUI.cs
- PreviewPrintController.cs
- FullTextBreakpoint.cs
- RadialGradientBrush.cs
- XmlJsonWriter.cs
- IndentedWriter.cs
- RichTextBox.cs
- EntitySqlQueryCacheKey.cs
- AccessText.cs
- SqlUtil.cs
- Trace.cs
- TargetPerspective.cs
- FaultContractInfo.cs
- UpdateRecord.cs
- ReceiveActivityDesigner.cs
- TextSelectionHelper.cs
- OleDbParameterCollection.cs
- Misc.cs
- TextDecorationUnitValidation.cs
- PrintPreviewDialog.cs
- HostingMessageProperty.cs
- Interlocked.cs
- JsonFormatReaderGenerator.cs
- SingleAnimationBase.cs
- OracleDataAdapter.cs
- errorpatternmatcher.cs
- ScriptManager.cs
- MetadataArtifactLoaderCompositeFile.cs
- SqlDataSourceCommandEventArgs.cs
- DataBindingList.cs
- CookieParameter.cs
- SymbolEqualComparer.cs
- AnonymousIdentificationModule.cs
- BaseUriHelper.cs
- XsltContext.cs
- SecureStringHasher.cs
- DataGridViewLinkColumn.cs
- XPathSelfQuery.cs
- WebPartTracker.cs
- QilTargetType.cs
- AnnouncementEndpoint.cs
- GregorianCalendar.cs
- MatrixTransform3D.cs
- ToolBarPanel.cs
- SecurityRuntime.cs
- DBNull.cs
- SpotLight.cs
- UriTemplatePathSegment.cs
- Regex.cs
- ContainerVisual.cs
- InvalidOleVariantTypeException.cs
- EndpointConfigContainer.cs
- TextDecorationCollection.cs
- ActivityScheduledQuery.cs
- DesignTimeVisibleAttribute.cs
- EDesignUtil.cs
- UnmanagedMemoryStreamWrapper.cs
- DynamicILGenerator.cs
- CodeDelegateInvokeExpression.cs
- GridViewCellAutomationPeer.cs
- MimePart.cs