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
- Constraint.cs
- AppDomainUnloadedException.cs
- SettingsPropertyIsReadOnlyException.cs
- TableCellsCollectionEditor.cs
- DbParameterCollectionHelper.cs
- CorrelationKeyCalculator.cs
- Cloud.cs
- SecurityException.cs
- CacheHelper.cs
- ProtocolsConfigurationEntry.cs
- EdgeProfileValidation.cs
- XpsFilter.cs
- Section.cs
- Compiler.cs
- PipelineModuleStepContainer.cs
- OdbcReferenceCollection.cs
- SqlBuilder.cs
- SiteIdentityPermission.cs
- WebPartConnectionsEventArgs.cs
- HuffmanTree.cs
- NamespaceDisplayAutomationPeer.cs
- StaticContext.cs
- FontFamilyConverter.cs
- WmpBitmapEncoder.cs
- WebPartConnectionsCloseVerb.cs
- HighContrastHelper.cs
- BrowserCapabilitiesCodeGenerator.cs
- BrowserCapabilitiesFactoryBase.cs
- XmlSchemaCollection.cs
- MailHeaderInfo.cs
- SQLString.cs
- CompilationLock.cs
- CodeTryCatchFinallyStatement.cs
- ConnectionManagementElement.cs
- DbBuffer.cs
- PathTooLongException.cs
- ShaperBuffers.cs
- FormView.cs
- ProxyHwnd.cs
- BufferBuilder.cs
- HtmlInputSubmit.cs
- ByteConverter.cs
- Query.cs
- TdsParameterSetter.cs
- AppearanceEditorPart.cs
- AutoResizedEvent.cs
- SmtpClient.cs
- WebBrowserNavigatingEventHandler.cs
- UserPreferenceChangedEventArgs.cs
- ListBoxAutomationPeer.cs
- ACL.cs
- MinMaxParagraphWidth.cs
- PreviewPrintController.cs
- GenerateTemporaryAssemblyTask.cs
- CustomWebEventKey.cs
- TypeExtensions.cs
- OneOfTypeConst.cs
- PersonalizableAttribute.cs
- PrivateFontCollection.cs
- RenderData.cs
- ByteBufferPool.cs
- TdsParserHelperClasses.cs
- OleDbPermission.cs
- SHA384CryptoServiceProvider.cs
- CalendarDateRange.cs
- Condition.cs
- _DisconnectOverlappedAsyncResult.cs
- WebConfigurationHost.cs
- SiteMapNode.cs
- RegexCompilationInfo.cs
- FieldBuilder.cs
- KeyboardNavigation.cs
- XmlNodeList.cs
- TableColumn.cs
- ThousandthOfEmRealDoubles.cs
- URLEditor.cs
- CalendarDateRange.cs
- TypeConverter.cs
- FilterQueryOptionExpression.cs
- SignatureDescription.cs
- DataGridViewCellMouseEventArgs.cs
- WebPartHeaderCloseVerb.cs
- SendMailErrorEventArgs.cs
- SplashScreenNativeMethods.cs
- TextPenaltyModule.cs
- DefaultProxySection.cs
- Component.cs
- XmlStrings.cs
- Serializer.cs
- Schema.cs
- TransformationRules.cs
- GlobalizationSection.cs
- ObfuscationAttribute.cs
- RequestUriProcessor.cs
- NamespaceCollection.cs
- EntryPointNotFoundException.cs
- typedescriptorpermission.cs
- Pen.cs
- SqlClientPermission.cs
- ClassHandlersStore.cs