Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / NavigationProperty.cs / 1 / 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
- KeyedCollection.cs
- WebGetAttribute.cs
- AsyncOperationContext.cs
- InlinedAggregationOperatorEnumerator.cs
- SByte.cs
- WebPartsPersonalizationAuthorization.cs
- XPathPatternBuilder.cs
- SizeAnimation.cs
- UncommonField.cs
- followingquery.cs
- HtmlInputPassword.cs
- ArithmeticException.cs
- ActivationArguments.cs
- oledbconnectionstring.cs
- XmlCDATASection.cs
- SqlHelper.cs
- IteratorDescriptor.cs
- OdbcStatementHandle.cs
- XmlRawWriterWrapper.cs
- PathData.cs
- DbDataAdapter.cs
- PrintPageEvent.cs
- FormatStringEditor.cs
- ExplicitDiscriminatorMap.cs
- AllowedAudienceUriElementCollection.cs
- __Filters.cs
- PathTooLongException.cs
- ConsoleEntryPoint.cs
- InfiniteIntConverter.cs
- MetadataItemCollectionFactory.cs
- ItemList.cs
- ProgressBarRenderer.cs
- Asn1Utilities.cs
- BitmapFrameDecode.cs
- WebPartVerbCollection.cs
- ServiceModelConfigurationElementCollection.cs
- XmlSchemaAppInfo.cs
- Vector3DConverter.cs
- RequestTimeoutManager.cs
- DbDataRecord.cs
- DispatcherOperation.cs
- BindingExpressionUncommonField.cs
- ParameterEditorUserControl.cs
- StyleBamlRecordReader.cs
- DirectoryObjectSecurity.cs
- LineGeometry.cs
- HttpWebRequest.cs
- ListViewGroupCollectionEditor.cs
- EdmFunction.cs
- Vector3DAnimation.cs
- CryptoHelper.cs
- XmlTypeMapping.cs
- XpsImageSerializationService.cs
- AnimationClockResource.cs
- ToolStripGripRenderEventArgs.cs
- TextWriter.cs
- SQlBooleanStorage.cs
- SqlWebEventProvider.cs
- SafeSecurityHandles.cs
- ObjectDataSourceStatusEventArgs.cs
- XmlEnumAttribute.cs
- FunctionUpdateCommand.cs
- Point.cs
- UnaryOperationBinder.cs
- XamlToRtfParser.cs
- LocalizationComments.cs
- NotCondition.cs
- Marshal.cs
- SqlGenericUtil.cs
- SmtpLoginAuthenticationModule.cs
- SafeLibraryHandle.cs
- MenuItemBinding.cs
- APCustomTypeDescriptor.cs
- MsmqMessage.cs
- DataMemberFieldConverter.cs
- BamlTreeMap.cs
- DataBindEngine.cs
- SimplePropertyEntry.cs
- BaseCodePageEncoding.cs
- PerformanceCountersElement.cs
- WindowsListBox.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- UInt16Converter.cs
- StylusPointPropertyUnit.cs
- InputLanguageCollection.cs
- LinearKeyFrames.cs
- MulticastDelegate.cs
- UIElementHelper.cs
- DrawingBrush.cs
- TreeView.cs
- XmlWriterSettings.cs
- BeginEvent.cs
- Array.cs
- DataControlLinkButton.cs
- ListViewCommandEventArgs.cs
- EventTrigger.cs
- XmlStringTable.cs
- LineUtil.cs
- SemanticResolver.cs
- Decimal.cs