Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / SchemaComplexType.cs / 1305376 / SchemaComplexType.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Xml; using System.Data; using System.Data.Metadata.Edm; namespace System.Data.EntityModel.SchemaObjectModel { ////// Summary description for NestedType. /// internal sealed class SchemaComplexType : StructuredType { #region Public Methods ////// /// /// internal SchemaComplexType(Schema parentElement) : base(parentElement) { if (Schema.DataModel == SchemaDataModelOption.EntityDataModel) OtherContent.Add(Schema.SchemaSource); } #endregion #region Public Properties #endregion #region Protected Methods ////// /// internal override void ResolveTopLevelNames() { base.ResolveTopLevelNames(); if ( BaseType != null ) { if ( !(BaseType is SchemaComplexType) ) { AddError( ErrorCode.InvalidBaseType, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.InvalidBaseTypeForNestedType(BaseType.FQName,FQName)); } } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Xml; using System.Data; using System.Data.Metadata.Edm; namespace System.Data.EntityModel.SchemaObjectModel { ////// Summary description for NestedType. /// internal sealed class SchemaComplexType : StructuredType { #region Public Methods ////// /// /// internal SchemaComplexType(Schema parentElement) : base(parentElement) { if (Schema.DataModel == SchemaDataModelOption.EntityDataModel) OtherContent.Add(Schema.SchemaSource); } #endregion #region Public Properties #endregion #region Protected Methods ////// /// internal override void ResolveTopLevelNames() { base.ResolveTopLevelNames(); if ( BaseType != null ) { if ( !(BaseType is SchemaComplexType) ) { AddError( ErrorCode.InvalidBaseType, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.InvalidBaseTypeForNestedType(BaseType.FQName,FQName)); } } } #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
- WeakKeyDictionary.cs
- Group.cs
- GcHandle.cs
- CodeComment.cs
- ContentHostHelper.cs
- KeyedCollection.cs
- XPathDescendantIterator.cs
- AncillaryOps.cs
- BrowserCapabilitiesFactory.cs
- MouseActionConverter.cs
- BinaryObjectWriter.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- CalendarAutomationPeer.cs
- HttpClientCertificate.cs
- SystemIPv4InterfaceProperties.cs
- TaskExceptionHolder.cs
- AsyncCompletedEventArgs.cs
- GenericWebPart.cs
- EnumBuilder.cs
- KeyToListMap.cs
- ListBoxAutomationPeer.cs
- X509SubjectKeyIdentifierClause.cs
- ScaleTransform3D.cs
- Rotation3D.cs
- AttachedPropertyBrowsableAttribute.cs
- ClientTarget.cs
- EntityKey.cs
- RegisteredArrayDeclaration.cs
- DataGridRow.cs
- BuildProvidersCompiler.cs
- ChannelServices.cs
- coordinatorfactory.cs
- TransportReplyChannelAcceptor.cs
- ParenthesizePropertyNameAttribute.cs
- SoapMessage.cs
- RawStylusInputCustomData.cs
- XmlStringTable.cs
- AsynchronousChannel.cs
- LinqDataSourceSelectEventArgs.cs
- WSDualHttpSecurityMode.cs
- SQLStringStorage.cs
- SymbolEqualComparer.cs
- EntitySetBaseCollection.cs
- ImageClickEventArgs.cs
- StylusPointProperty.cs
- SizeKeyFrameCollection.cs
- HelpEvent.cs
- ContextStaticAttribute.cs
- KeyFrames.cs
- FixedDocumentSequencePaginator.cs
- JournalNavigationScope.cs
- UserNamePasswordValidationMode.cs
- SqlUtils.cs
- UserControl.cs
- GenericXmlSecurityToken.cs
- FindRequestContext.cs
- XmlIlGenerator.cs
- ExecutedRoutedEventArgs.cs
- GregorianCalendar.cs
- WindowsRegion.cs
- NetworkAddressChange.cs
- _IPv4Address.cs
- ChangesetResponse.cs
- MultiAsyncResult.cs
- TaskDesigner.cs
- RadioButtonBaseAdapter.cs
- ControlsConfig.cs
- WindowsListViewItemCheckBox.cs
- GeometryDrawing.cs
- TableCellCollection.cs
- DataViewManagerListItemTypeDescriptor.cs
- StaticResourceExtension.cs
- DoubleUtil.cs
- BitmapEffectCollection.cs
- LifetimeMonitor.cs
- IPAddress.cs
- RealizationDrawingContextWalker.cs
- ParenExpr.cs
- ClonableStack.cs
- BindableTemplateBuilder.cs
- Int32RectValueSerializer.cs
- BigInt.cs
- CodeDirectoryCompiler.cs
- xml.cs
- Italic.cs
- MessageQuerySet.cs
- Adorner.cs
- AutomationPeer.cs
- SystemColors.cs
- SecurityContextSecurityTokenResolver.cs
- WindowsPrincipal.cs
- EventLogWatcher.cs
- CmsUtils.cs
- wgx_exports.cs
- followingsibling.cs
- ValidationRule.cs
- WebException.cs
- ReferentialConstraint.cs
- SamlConditions.cs
- OdbcStatementHandle.cs