Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / KeyProperty.cs / 1305376 / KeyProperty.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Data.Metadata.Edm; namespace System.Data.EntityModel.SchemaObjectModel { ////// Represents PropertyRef Element for Entity keys and referential constraints /// internal sealed class PropertyRefElement : SchemaElement { #region Instance Fields private StructuredProperty _property = null; #endregion #region Public Methods ////// construct a KeyProperty object /// /// public PropertyRefElement(SchemaElement parentElement) : base(parentElement) { } #endregion #region Public Properties ////// property chain from KeyedType to Leaf property /// public StructuredProperty Property { get { return _property; } } #endregion #region Private Methods internal override void ResolveTopLevelNames() { Debug.Assert(false, "This method should never be used. Use other overload instead"); } ////// Since this method can be used in different context, this method does not add any errors /// Please make sure that the caller of this methods handles the error case and add errors /// appropriately /// /// ///internal bool ResolveNames(SchemaEntityType entityType) { if (string.IsNullOrEmpty(this.Name)) { // Don't flag this error. This must already must have flaged as error, while handling name attribute return true; } // Make sure there is a property by this name _property = entityType.FindProperty(this.Name); return (_property != null); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BoundField.cs
- ListItemCollection.cs
- CorrelationResolver.cs
- MD5CryptoServiceProvider.cs
- Registry.cs
- CodeThrowExceptionStatement.cs
- WeakReferenceList.cs
- SHA512CryptoServiceProvider.cs
- RayHitTestParameters.cs
- AffineTransform3D.cs
- BamlLocalizer.cs
- ProviderSettings.cs
- XamlVector3DCollectionSerializer.cs
- TaiwanCalendar.cs
- ColorDialog.cs
- DesignerAttributeInfo.cs
- RequestDescription.cs
- SqlDataSourceEnumerator.cs
- MetadataPropertyCollection.cs
- XXXInfos.cs
- HwndSourceParameters.cs
- StorageModelBuildProvider.cs
- BamlLocalizableResourceKey.cs
- ArrayExtension.cs
- DotExpr.cs
- TextSelectionHelper.cs
- InstancePersistenceContext.cs
- ByteRangeDownloader.cs
- SqlFunctionAttribute.cs
- UInt64Storage.cs
- UpdatePanelTrigger.cs
- ToolStripDropDownClosingEventArgs.cs
- RepeatButton.cs
- OdbcCommand.cs
- DbParameterCollectionHelper.cs
- TreeNodeBinding.cs
- TextEditorDragDrop.cs
- ConfigurationSectionHelper.cs
- Errors.cs
- Int16.cs
- StrongName.cs
- JavaScriptSerializer.cs
- SubtreeProcessor.cs
- MsdtcClusterUtils.cs
- ClipboardProcessor.cs
- ProcessModelInfo.cs
- ExtentCqlBlock.cs
- QilStrConcatenator.cs
- ImageBrush.cs
- XMLUtil.cs
- ObjectNotFoundException.cs
- Imaging.cs
- FeatureSupport.cs
- PartitionerQueryOperator.cs
- FileSystemWatcher.cs
- BooleanKeyFrameCollection.cs
- ApplicationSecurityManager.cs
- XmlQueryCardinality.cs
- ToolStripContentPanel.cs
- AutomationFocusChangedEventArgs.cs
- CombinedGeometry.cs
- TransactionManagerProxy.cs
- XmlSchemaInferenceException.cs
- OdbcRowUpdatingEvent.cs
- OracleBoolean.cs
- RuntimeEnvironment.cs
- CustomAttribute.cs
- WaitForChangedResult.cs
- HttpCapabilitiesSectionHandler.cs
- NullableBoolConverter.cs
- _NegotiateClient.cs
- CharAnimationBase.cs
- MailDefinition.cs
- RegionData.cs
- XamlGridLengthSerializer.cs
- GetPageNumberCompletedEventArgs.cs
- Annotation.cs
- Membership.cs
- PerfCounterSection.cs
- BaseServiceProvider.cs
- XmlNodeList.cs
- CultureNotFoundException.cs
- ActivationServices.cs
- HttpsChannelListener.cs
- ResourcesBuildProvider.cs
- StateFinalizationActivity.cs
- CssStyleCollection.cs
- UnsettableComboBox.cs
- Point3DCollectionConverter.cs
- Compiler.cs
- EntityKeyElement.cs
- DataGridTextColumn.cs
- XmlWellformedWriterHelpers.cs
- ISAPIWorkerRequest.cs
- RSAProtectedConfigurationProvider.cs
- XmlSchemaSimpleTypeRestriction.cs
- MaskDescriptor.cs
- OutgoingWebRequestContext.cs
- OdbcDataAdapter.cs
- DateTimeValueSerializerContext.cs