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
- BindingMAnagerBase.cs
- ListViewGroupConverter.cs
- EditorPartChrome.cs
- XmlC14NWriter.cs
- RecordsAffectedEventArgs.cs
- DragDrop.cs
- NetworkInformationPermission.cs
- GlyphTypeface.cs
- MimeXmlImporter.cs
- ZoomPercentageConverter.cs
- WebPartEditorApplyVerb.cs
- ComPersistableTypeElementCollection.cs
- WebFaultException.cs
- WeakEventManager.cs
- HitTestFilterBehavior.cs
- ProtectedProviderSettings.cs
- DataObject.cs
- PathSegment.cs
- ReceiveMessageContent.cs
- TransactionException.cs
- SplitContainer.cs
- DecimalSumAggregationOperator.cs
- WebPartVerbCollection.cs
- Authorization.cs
- CornerRadiusConverter.cs
- BitmapEffect.cs
- PageParserFilter.cs
- WebBrowser.cs
- PointAnimationUsingKeyFrames.cs
- WsdlHelpGeneratorElement.cs
- XXXInfos.cs
- TimerEventSubscription.cs
- SafeRightsManagementQueryHandle.cs
- SymbolPair.cs
- String.cs
- CookielessHelper.cs
- StylusButtonEventArgs.cs
- OraclePermissionAttribute.cs
- DocumentGridPage.cs
- HighlightComponent.cs
- BindableTemplateBuilder.cs
- IndexOutOfRangeException.cs
- RawStylusInput.cs
- RestrictedTransactionalPackage.cs
- ScrollItemProviderWrapper.cs
- BufferBuilder.cs
- TreeNodeSelectionProcessor.cs
- AssemblyAttributes.cs
- AutoSizeComboBox.cs
- AssemblyUtil.cs
- LocalBuilder.cs
- SqlDataReaderSmi.cs
- Gdiplus.cs
- NonBatchDirectoryCompiler.cs
- TraceContextEventArgs.cs
- WrappedReader.cs
- SpecialNameAttribute.cs
- ItemChangedEventArgs.cs
- _LocalDataStoreMgr.cs
- UDPClient.cs
- UnwrappedTypesXmlSerializerManager.cs
- ImplicitInputBrush.cs
- ListViewGroup.cs
- XmlJsonReader.cs
- SqlCacheDependencySection.cs
- TransformCryptoHandle.cs
- TextDecorationUnitValidation.cs
- TextEditorSpelling.cs
- CodeRemoveEventStatement.cs
- StreamWriter.cs
- DrawingContextDrawingContextWalker.cs
- XmlObjectSerializer.cs
- Module.cs
- PasswordBoxAutomationPeer.cs
- XPathDocumentBuilder.cs
- SqlDependencyListener.cs
- XmlNode.cs
- AddInContractAttribute.cs
- DocumentAutomationPeer.cs
- HttpWebResponse.cs
- TemplatePropertyEntry.cs
- ServiceOperationParameter.cs
- ServiceEndpoint.cs
- Deflater.cs
- ProjectionCamera.cs
- Transform3DGroup.cs
- FullTextLine.cs
- EntitySqlQueryState.cs
- NumericUpDownAccelerationCollection.cs
- InputScope.cs
- FigureParagraph.cs
- OleDbCommandBuilder.cs
- QilExpression.cs
- DESCryptoServiceProvider.cs
- ObjectDataSourceMethodEventArgs.cs
- EdmSchemaAttribute.cs
- StreamGeometryContext.cs
- MouseButtonEventArgs.cs
- EntityDataSourceWrapperCollection.cs
- DataGridViewCellStyleContentChangedEventArgs.cs