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
- ImageClickEventArgs.cs
- EntityDataSourceContainerNameConverter.cs
- DynamicResourceExtension.cs
- RotateTransform.cs
- OrderByQueryOptionExpression.cs
- StylusButton.cs
- FirewallWrapper.cs
- WindowsGraphics.cs
- UnsafeNativeMethods.cs
- HostingEnvironmentSection.cs
- FirewallWrapper.cs
- AutomationElementIdentifiers.cs
- EpmSyndicationContentSerializer.cs
- AmbientLight.cs
- RegexTypeEditor.cs
- SortedDictionary.cs
- DataListItemCollection.cs
- Point3DKeyFrameCollection.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- FixedLineResult.cs
- Panel.cs
- ExpressionNode.cs
- ValueType.cs
- SapiRecognizer.cs
- Transform3D.cs
- HtmlHistory.cs
- CompoundFileDeflateTransform.cs
- XmlSchemaSearchPattern.cs
- NullExtension.cs
- MainMenu.cs
- OAVariantLib.cs
- XmlTextWriter.cs
- DesignerListAdapter.cs
- Tokenizer.cs
- MailHeaderInfo.cs
- DiagnosticsConfiguration.cs
- NameObjectCollectionBase.cs
- Misc.cs
- ProtectedProviderSettings.cs
- XmlWriter.cs
- ReferentialConstraint.cs
- DesignBindingPicker.cs
- PointAnimationBase.cs
- DataSetUtil.cs
- SkinBuilder.cs
- WebPartEditVerb.cs
- PolyQuadraticBezierSegment.cs
- NumericExpr.cs
- HtmlInputHidden.cs
- Compiler.cs
- QilXmlReader.cs
- PhotoPrintingIntent.cs
- ObjectStateEntryDbDataRecord.cs
- MachineKeySection.cs
- PieceNameHelper.cs
- CipherData.cs
- NamespaceTable.cs
- KnownTypesHelper.cs
- XmlNotation.cs
- UiaCoreApi.cs
- CustomCredentialPolicy.cs
- TemplatedAdorner.cs
- Primitive.cs
- SqlClientFactory.cs
- PropertyMap.cs
- EventArgs.cs
- EnvironmentPermission.cs
- DBSqlParser.cs
- SortedList.cs
- MouseButtonEventArgs.cs
- ScriptingProfileServiceSection.cs
- CacheSection.cs
- DataPagerField.cs
- WebEventCodes.cs
- PagesSection.cs
- XXXInfos.cs
- Compiler.cs
- SharedUtils.cs
- AlternateViewCollection.cs
- PersonalizationProvider.cs
- DataErrorValidationRule.cs
- RayMeshGeometry3DHitTestResult.cs
- contentDescriptor.cs
- Point.cs
- Types.cs
- XmlHelper.cs
- StorageScalarPropertyMapping.cs
- WindowsListViewItem.cs
- ByteKeyFrameCollection.cs
- GradientStop.cs
- VisualBasicSettingsHandler.cs
- NamespaceInfo.cs
- DataObjectEventArgs.cs
- HeaderFilter.cs
- XPathDescendantIterator.cs
- DefaultParameterValueAttribute.cs
- RubberbandSelector.cs
- PreviewPageInfo.cs
- UIPropertyMetadata.cs
- Ops.cs