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
- ISessionStateStore.cs
- DataGridViewRowCollection.cs
- ArraySubsetEnumerator.cs
- HttpCapabilitiesBase.cs
- ImageDesigner.cs
- CqlGenerator.cs
- Cursors.cs
- EntityException.cs
- ResourcePart.cs
- DataGridSortCommandEventArgs.cs
- Geometry3D.cs
- XmlCDATASection.cs
- LocatorPartList.cs
- SafeCryptHandles.cs
- TypeElementCollection.cs
- RelOps.cs
- wgx_exports.cs
- CompilerError.cs
- TdsParserHelperClasses.cs
- ControlBindingsCollection.cs
- EntitySqlQueryCacheEntry.cs
- LogReserveAndAppendState.cs
- XmlReaderDelegator.cs
- DataListItemEventArgs.cs
- DataList.cs
- DynamicPropertyHolder.cs
- RijndaelManaged.cs
- DecimalSumAggregationOperator.cs
- Parser.cs
- RemotingException.cs
- InputMethod.cs
- SessionStateUtil.cs
- FrameworkContentElement.cs
- TextBounds.cs
- NameValueFileSectionHandler.cs
- __ConsoleStream.cs
- PasswordRecoveryDesigner.cs
- WindowsComboBox.cs
- HeaderedItemsControl.cs
- RegisterResponseInfo.cs
- KoreanCalendar.cs
- TemplatedAdorner.cs
- RsaSecurityTokenAuthenticator.cs
- TreeBuilderBamlTranslator.cs
- COM2PictureConverter.cs
- QueryResultOp.cs
- MultipleCopiesCollection.cs
- DetailsViewRowCollection.cs
- DbParameterCollectionHelper.cs
- SetStateEventArgs.cs
- HtmlButton.cs
- SecurityHeaderElementInferenceEngine.cs
- XmlAttributeCache.cs
- RemotingException.cs
- WebPartsPersonalizationAuthorization.cs
- SecurityUtils.cs
- TreeViewDesigner.cs
- TableDetailsCollection.cs
- WebServiceHandlerFactory.cs
- FolderBrowserDialog.cs
- DSASignatureDeformatter.cs
- WorkflowInstance.cs
- _ContextAwareResult.cs
- TableChangeProcessor.cs
- SymbolEqualComparer.cs
- ActivityExecutorDelegateInfo.cs
- ResourceContainer.cs
- TextServicesDisplayAttributePropertyRanges.cs
- ProgressBar.cs
- XhtmlCssHandler.cs
- AncillaryOps.cs
- MetadataArtifactLoader.cs
- UInt16Converter.cs
- WsdlInspector.cs
- XmlArrayItemAttributes.cs
- MessageHeaderInfoTraceRecord.cs
- GridView.cs
- DbProviderFactoriesConfigurationHandler.cs
- IntegrationExceptionEventArgs.cs
- DatagridviewDisplayedBandsData.cs
- lengthconverter.cs
- UInt32.cs
- UnmanagedHandle.cs
- PopOutPanel.cs
- Rect.cs
- SrgsItemList.cs
- xmlNames.cs
- ConfigUtil.cs
- XmlDataCollection.cs
- RulePatternOps.cs
- XmlDocumentSerializer.cs
- CharEnumerator.cs
- CodePageUtils.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- TypeGenericEnumerableViewSchema.cs
- SpnEndpointIdentity.cs
- ThumbAutomationPeer.cs
- codemethodreferenceexpression.cs
- ApplicationSettingsBase.cs
- ItemsPresenter.cs