Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / SchemaComplexType.cs / 2 / 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)
{
}
#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)
{
}
#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
- TypeConverter.cs
- RoleService.cs
- AncestorChangedEventArgs.cs
- DBProviderConfigurationHandler.cs
- StringToken.cs
- RankException.cs
- CultureInfoConverter.cs
- MenuCommand.cs
- MsmqIntegrationInputMessage.cs
- HtmlFormWrapper.cs
- MethodInfo.cs
- CreateUserErrorEventArgs.cs
- FillErrorEventArgs.cs
- DataViewManagerListItemTypeDescriptor.cs
- EventWaitHandle.cs
- PolyLineSegmentFigureLogic.cs
- AggregateException.cs
- xmlfixedPageInfo.cs
- NullableConverter.cs
- OdbcCommand.cs
- odbcmetadatacolumnnames.cs
- RoutedUICommand.cs
- CookieProtection.cs
- SqlConnectionPoolProviderInfo.cs
- IntegrationExceptionEventArgs.cs
- QuaternionValueSerializer.cs
- SpotLight.cs
- FunctionQuery.cs
- SchemaElementDecl.cs
- SQLString.cs
- DPTypeDescriptorContext.cs
- EnvironmentPermission.cs
- XmlObjectSerializerReadContextComplexJson.cs
- SrgsSemanticInterpretationTag.cs
- Message.cs
- XmlLanguageConverter.cs
- EndOfStreamException.cs
- X509DefaultServiceCertificateElement.cs
- GenericPrincipal.cs
- TabControlCancelEvent.cs
- TypeNameConverter.cs
- UidPropertyAttribute.cs
- BindStream.cs
- BindingSourceDesigner.cs
- HierarchicalDataSourceControl.cs
- ListParaClient.cs
- DigitShape.cs
- FormsAuthenticationTicket.cs
- StringSorter.cs
- BrowserTree.cs
- XPathNavigatorKeyComparer.cs
- CellRelation.cs
- DynamicArgumentDialog.cs
- CompModSwitches.cs
- ListenerSessionConnectionReader.cs
- ControlLocalizer.cs
- QueueException.cs
- TraceContextRecord.cs
- LocationUpdates.cs
- ApplicationHost.cs
- ObjectSpanRewriter.cs
- Matrix.cs
- UnmanagedMarshal.cs
- XPathNodeList.cs
- VerticalConnector.xaml.cs
- MILUtilities.cs
- BulletedList.cs
- NullableLongAverageAggregationOperator.cs
- AllowedAudienceUriElementCollection.cs
- WebException.cs
- MultiSelectRootGridEntry.cs
- ResolveMatchesApril2005.cs
- WithStatement.cs
- SessionPageStateSection.cs
- BaseParaClient.cs
- IsolatedStorageFileStream.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Mappings.cs
- StorageEntitySetMapping.cs
- TransportBindingElementImporter.cs
- PostBackOptions.cs
- ServiceInstallComponent.cs
- OpCellTreeNode.cs
- AnimationLayer.cs
- XmlSchemaSimpleContent.cs
- SettingsProperty.cs
- TextRunCache.cs
- WorkflowOwnerAsyncResult.cs
- DataGridViewToolTip.cs
- CalendarDataBindingHandler.cs
- Int64.cs
- Header.cs
- XmlSerializerFactory.cs
- PackageDigitalSignatureManager.cs
- Bezier.cs
- Boolean.cs
- TextRangeSerialization.cs
- TemplateField.cs
- WebFaultClientMessageInspector.cs
- LongAverageAggregationOperator.cs