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
- ImageConverter.cs
- AnonymousIdentificationModule.cs
- TrustManagerMoreInformation.cs
- Win32Native.cs
- CompoundFileIOPermission.cs
- ServiceContractGenerator.cs
- DispatcherTimer.cs
- DictionaryEntry.cs
- WebGetAttribute.cs
- DateTimeUtil.cs
- HighContrastHelper.cs
- ObjectView.cs
- DiscoveryDocument.cs
- UrlPath.cs
- KnownTypeDataContractResolver.cs
- MessageSecurityOverTcp.cs
- DrawToolTipEventArgs.cs
- MarkupCompilePass2.cs
- VisualTreeUtils.cs
- TraceContextEventArgs.cs
- Partitioner.cs
- EntityDataSourceDataSelection.cs
- FormViewInsertedEventArgs.cs
- ManipulationInertiaStartingEventArgs.cs
- DataGrid.cs
- StringSorter.cs
- ScrollBar.cs
- FlowDocumentPage.cs
- XmlSchemaSubstitutionGroup.cs
- BuildProvidersCompiler.cs
- TemplateControlCodeDomTreeGenerator.cs
- ClientCultureInfo.cs
- SpeakInfo.cs
- FileSystemEventArgs.cs
- WindowsContainer.cs
- ByteFacetDescriptionElement.cs
- WasAdminWrapper.cs
- Listbox.cs
- ContainerFilterService.cs
- Shape.cs
- TableAdapterManagerGenerator.cs
- CollectionExtensions.cs
- RectangleConverter.cs
- KeysConverter.cs
- ContractCodeDomInfo.cs
- SessionState.cs
- BooleanFacetDescriptionElement.cs
- EncoderReplacementFallback.cs
- Base64Decoder.cs
- CommentGlyph.cs
- DataGridColumnHeader.cs
- OleDbParameter.cs
- BindStream.cs
- SharedConnectionWorkflowTransactionService.cs
- DesignTimeHTMLTextWriter.cs
- COM2Properties.cs
- HiddenField.cs
- OdbcDataReader.cs
- MouseGestureConverter.cs
- DragDeltaEventArgs.cs
- OciEnlistContext.cs
- PrintPreviewDialog.cs
- DescendantBaseQuery.cs
- SelectionWordBreaker.cs
- IxmlLineInfo.cs
- MsmqPoisonMessageException.cs
- FontSourceCollection.cs
- ISFClipboardData.cs
- DataObject.cs
- ApplicationContext.cs
- DataGridTextBoxColumn.cs
- SoapEnumAttribute.cs
- GeneralTransform2DTo3D.cs
- HyperLinkColumn.cs
- VisualBasicSettingsConverter.cs
- ToolStripPanelRow.cs
- RegistryConfigurationProvider.cs
- PageFunction.cs
- IsolationInterop.cs
- OuterGlowBitmapEffect.cs
- BooleanConverter.cs
- RunClient.cs
- HttpWriter.cs
- DataAdapter.cs
- XmlILOptimizerVisitor.cs
- MouseActionValueSerializer.cs
- TableLayoutCellPaintEventArgs.cs
- ByteConverter.cs
- DataSourceSelectArguments.cs
- DesignBinding.cs
- ObjectSpanRewriter.cs
- DBSqlParserColumnCollection.cs
- FlowDocumentPaginator.cs
- SmiEventSink.cs
- SectionVisual.cs
- TemplateControlBuildProvider.cs
- ViewStateModeByIdAttribute.cs
- SerializationEventsCache.cs
- IdentityReference.cs
- DocumentScope.cs