Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntityDesign / Design / System / Data / EntityModel / Emitters / ComplexTypeEmitter.cs / 1 / ComplexTypeEmitter.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.CodeDom; using System.Data; using System.Data.Metadata.Edm; using System.Data.EntityModel.SchemaObjectModel; namespace System.Data.EntityModel.Emitters { ////// Summary description for NestedTypeEmitter. /// internal sealed class ComplexTypeEmitter : StructuredTypeEmitter { #region Methods ////// /// /// /// public ComplexTypeEmitter(ClientApiGenerator generator, ComplexType complexType) : base(generator, complexType) { } ////// Apply the attributes to this type. /// /// The declaration of the type that should have attributes added to it. protected override void EmitTypeAttributes( CodeTypeDeclaration typeDecl ) { Generator.AttributeEmitter.EmitTypeAttributes( this, typeDecl ); base.EmitTypeAttributes( typeDecl ); } #endregion #region Protected Properties ////// /// ///protected override CodeTypeReference GetBaseType() { CodeTypeReference baseType = base.GetBaseType(); if (baseType == null) { baseType = TypeReference.ComplexTypeBaseClass; } return baseType; } protected override ReadOnlyMetadataCollection GetProperties() { return Item.Properties; } internal new ComplexType Item { get { return base.Item as ComplexType; } } #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.CodeDom; using System.Data; using System.Data.Metadata.Edm; using System.Data.EntityModel.SchemaObjectModel; namespace System.Data.EntityModel.Emitters { ////// Summary description for NestedTypeEmitter. /// internal sealed class ComplexTypeEmitter : StructuredTypeEmitter { #region Methods ////// /// /// /// public ComplexTypeEmitter(ClientApiGenerator generator, ComplexType complexType) : base(generator, complexType) { } ////// Apply the attributes to this type. /// /// The declaration of the type that should have attributes added to it. protected override void EmitTypeAttributes( CodeTypeDeclaration typeDecl ) { Generator.AttributeEmitter.EmitTypeAttributes( this, typeDecl ); base.EmitTypeAttributes( typeDecl ); } #endregion #region Protected Properties ////// /// ///protected override CodeTypeReference GetBaseType() { CodeTypeReference baseType = base.GetBaseType(); if (baseType == null) { baseType = TypeReference.ComplexTypeBaseClass; } return baseType; } protected override ReadOnlyMetadataCollection GetProperties() { return Item.Properties; } internal new ComplexType Item { get { return base.Item as ComplexType; } } #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
- X509Certificate.cs
- FontDifferentiator.cs
- StdRegProviderWrapper.cs
- WebPartConnectionsConnectVerb.cs
- ListViewDeleteEventArgs.cs
- OraclePermission.cs
- SqlDataSourceFilteringEventArgs.cs
- UnsafeNativeMethodsMilCoreApi.cs
- DeviceFilterEditorDialog.cs
- InvokeProviderWrapper.cs
- PEFileReader.cs
- ExpandCollapsePattern.cs
- DefaultAsyncDataDispatcher.cs
- Pair.cs
- SpellerStatusTable.cs
- EntityDataReader.cs
- TextRangeEditLists.cs
- UrlPropertyAttribute.cs
- EntityDataSourceUtil.cs
- BaseTemplateParser.cs
- BamlBinaryReader.cs
- WindowsStartMenu.cs
- ConfigXmlReader.cs
- DbConnectionPool.cs
- CapabilitiesState.cs
- BufferBuilder.cs
- GridViewPageEventArgs.cs
- DesignerWithHeader.cs
- ProgressChangedEventArgs.cs
- Positioning.cs
- TypeUnloadedException.cs
- _DomainName.cs
- HtmlToClrEventProxy.cs
- SponsorHelper.cs
- MouseGestureValueSerializer.cs
- RegisteredExpandoAttribute.cs
- SelectionItemProviderWrapper.cs
- NamedPipeProcessProtocolHandler.cs
- AssemblyBuilder.cs
- ScriptServiceAttribute.cs
- PersonalizationProviderHelper.cs
- DesignerTextViewAdapter.cs
- MexNamedPipeBindingCollectionElement.cs
- SamlAdvice.cs
- TextServicesContext.cs
- DefaultAuthorizationContext.cs
- Rotation3DAnimation.cs
- StringAnimationBase.cs
- ForwardPositionQuery.cs
- RSAPKCS1KeyExchangeFormatter.cs
- NetDataContractSerializer.cs
- JoinCqlBlock.cs
- XhtmlConformanceSection.cs
- RSAPKCS1SignatureFormatter.cs
- SymmetricCryptoHandle.cs
- WindowsSpinner.cs
- NavigationExpr.cs
- StrongNameMembershipCondition.cs
- HttpRequestMessageProperty.cs
- DependencyPropertyChangedEventArgs.cs
- ToolZone.cs
- XmlFileEditor.cs
- _SingleItemRequestCache.cs
- IsolatedStoragePermission.cs
- RouteValueExpressionBuilder.cs
- JsonDeserializer.cs
- ConfigurationCollectionAttribute.cs
- ChangesetResponse.cs
- SimpleApplicationHost.cs
- TableMethodGenerator.cs
- TitleStyle.cs
- AssociationSetMetadata.cs
- WebPartConnectionsConnectVerb.cs
- WebResourceUtil.cs
- InheritablePropertyChangeInfo.cs
- HtmlLink.cs
- AppModelKnownContentFactory.cs
- DictionaryEditChange.cs
- BaseParagraph.cs
- Point.cs
- XmlHelper.cs
- DataGridViewIntLinkedList.cs
- SerialPort.cs
- ContractType.cs
- DataGridViewCellFormattingEventArgs.cs
- IndexedGlyphRun.cs
- columnmapfactory.cs
- PolicyException.cs
- HttpProfileBase.cs
- DnsPermission.cs
- SessionParameter.cs
- CodeTryCatchFinallyStatement.cs
- DebugTrace.cs
- TextModifier.cs
- SymbolMethod.cs
- DataTrigger.cs
- ListViewCancelEventArgs.cs
- CallSite.cs
- ConfigurationStrings.cs
- ParsedAttributeCollection.cs