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
- PlainXmlWriter.cs
- ToRequest.cs
- VisualBasicHelper.cs
- ImageFormatConverter.cs
- StateMachineWorkflowDesigner.cs
- FieldReference.cs
- HttpsChannelFactory.cs
- NamespaceList.cs
- remotingproxy.cs
- BaseTemplateBuildProvider.cs
- AlphaSortedEnumConverter.cs
- BigInt.cs
- CompositionDesigner.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- _SafeNetHandles.cs
- ColorConvertedBitmap.cs
- TableLayoutColumnStyleCollection.cs
- EnvelopedPkcs7.cs
- FullTrustAssembly.cs
- Expander.cs
- Privilege.cs
- XPathDocumentIterator.cs
- _LocalDataStore.cs
- TypeLoader.cs
- XmlValidatingReader.cs
- ProtocolViolationException.cs
- IndexingContentUnit.cs
- ClearTypeHintValidation.cs
- CodePrimitiveExpression.cs
- WithStatement.cs
- ColumnMapCopier.cs
- ColumnResizeUndoUnit.cs
- ELinqQueryState.cs
- InputGestureCollection.cs
- UnionCodeGroup.cs
- CompModSwitches.cs
- StreamingContext.cs
- MemoryStream.cs
- XmlComment.cs
- XmlElementCollection.cs
- ImmutableObjectAttribute.cs
- ContourSegment.cs
- FixedSOMGroup.cs
- PermissionSetEnumerator.cs
- securitymgrsite.cs
- StreamAsIStream.cs
- MSAANativeProvider.cs
- AttachedPropertyMethodSelector.cs
- SqlProviderManifest.cs
- TabPanel.cs
- HotCommands.cs
- AppSettingsReader.cs
- PersonalizableAttribute.cs
- DesignTimeDataBinding.cs
- RangeValueProviderWrapper.cs
- StringResourceManager.cs
- UrlMappingCollection.cs
- BamlResourceDeserializer.cs
- HandleCollector.cs
- WebPartDisplayModeCollection.cs
- ObjectSet.cs
- CrossSiteScriptingValidation.cs
- ProfilePropertySettings.cs
- RequestValidator.cs
- NamespaceEmitter.cs
- ResizeBehavior.cs
- BrushConverter.cs
- XmlILIndex.cs
- WinCategoryAttribute.cs
- CodeLinePragma.cs
- MachineKeyValidationConverter.cs
- StatementContext.cs
- ScriptReferenceEventArgs.cs
- CompilationSection.cs
- NameValuePermission.cs
- DataGridViewLinkCell.cs
- PrePrepareMethodAttribute.cs
- BulletDecorator.cs
- DrawingVisual.cs
- SqlCommandBuilder.cs
- TextElementEnumerator.cs
- SettingsPropertyNotFoundException.cs
- DataServiceCollectionOfT.cs
- ScalarOps.cs
- ArcSegment.cs
- RuntimeHandles.cs
- TextTreeFixupNode.cs
- XmlSchemaAnyAttribute.cs
- ThemeableAttribute.cs
- BooleanStorage.cs
- PropertyIDSet.cs
- TraceInternal.cs
- UserControl.cs
- OnOperation.cs
- WebPartHeaderCloseVerb.cs
- Base64Stream.cs
- NullExtension.cs
- HttpHandlersInstallComponent.cs
- Ops.cs
- GPPOINT.cs