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
- WaitHandleCannotBeOpenedException.cs
- Int32RectValueSerializer.cs
- COM2PropertyPageUITypeConverter.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- ValueTable.cs
- BamlVersionHeader.cs
- ChunkedMemoryStream.cs
- StaticFileHandler.cs
- DataGridViewControlCollection.cs
- CommandConverter.cs
- EditingMode.cs
- FileDetails.cs
- SmiContext.cs
- RenderTargetBitmap.cs
- WebPartUserCapability.cs
- UnaryNode.cs
- QilVisitor.cs
- DiscoveryMessageSequenceGenerator.cs
- AttachedPropertyMethodSelector.cs
- TextCompositionEventArgs.cs
- XmlSerializationReader.cs
- ExpressionParser.cs
- FrameworkElement.cs
- DataTableReader.cs
- QilExpression.cs
- ComponentEvent.cs
- TypedElement.cs
- RealProxy.cs
- OdbcStatementHandle.cs
- TheQuery.cs
- CriticalHandle.cs
- DBSqlParser.cs
- SafeProcessHandle.cs
- ValidationResults.cs
- HitTestParameters.cs
- PagedDataSource.cs
- XmlSchemaComplexContentExtension.cs
- ImageAnimator.cs
- JournalEntryListConverter.cs
- Literal.cs
- DropTarget.cs
- SystemDiagnosticsSection.cs
- TransformedBitmap.cs
- ProjectionCamera.cs
- GridViewAutoFormat.cs
- TrackingServices.cs
- DispatchWrapper.cs
- JsonDeserializer.cs
- BitmapEffectDrawing.cs
- SchemeSettingElement.cs
- PropertyDescriptorComparer.cs
- WebServiceErrorEvent.cs
- SQLMoney.cs
- NotifyParentPropertyAttribute.cs
- InkSerializer.cs
- TraceProvider.cs
- AnnotationHelper.cs
- TableRowCollection.cs
- ConstraintCollection.cs
- BypassElementCollection.cs
- FtpRequestCacheValidator.cs
- HashUtility.cs
- XmlDataImplementation.cs
- TableProvider.cs
- CachingHintValidation.cs
- RegexReplacement.cs
- ListDictionaryInternal.cs
- ItemsChangedEventArgs.cs
- ColumnMapTranslator.cs
- FieldCollectionEditor.cs
- Clipboard.cs
- WebPartUtil.cs
- ExtendedProtectionPolicy.cs
- ScriptServiceAttribute.cs
- GridViewCommandEventArgs.cs
- SqlGatherProducedAliases.cs
- XmlSchemaCompilationSettings.cs
- MsmqChannelFactory.cs
- DataSourceHelper.cs
- ConfigXmlCDataSection.cs
- SessionStateUtil.cs
- IMembershipProvider.cs
- DataError.cs
- PageBreakRecord.cs
- PeerToPeerException.cs
- DocumentSequenceHighlightLayer.cs
- SinglePhaseEnlistment.cs
- XmlQueryOutput.cs
- TextEncodedRawTextWriter.cs
- DocumentXPathNavigator.cs
- AuthenticationServiceManager.cs
- ObjectDataSourceDesigner.cs
- PostBackOptions.cs
- WorkflowServiceHostFactory.cs
- CngKeyCreationParameters.cs
- _ServiceNameStore.cs
- HttpProfileBase.cs
- StringFreezingAttribute.cs
- OutputScopeManager.cs
- TemplateInstanceAttribute.cs