Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntityDesign / Design / System / Data / EntityModel / Emitters / ComplexTypeEmitter.cs / 2 / 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
- FixedSOMImage.cs
- QueryCoreOp.cs
- ModuleConfigurationInfo.cs
- EditBehavior.cs
- XmlCDATASection.cs
- RsaSecurityKey.cs
- MsmqIntegrationChannelListener.cs
- ArgumentOutOfRangeException.cs
- ImageBrush.cs
- Stylesheet.cs
- NativeMethods.cs
- WebPartConnectionsDisconnectVerb.cs
- HttpWebResponse.cs
- ClockController.cs
- DesignerSelectionListAdapter.cs
- HostExecutionContextManager.cs
- TreeWalkHelper.cs
- SignatureToken.cs
- DateTimeConstantAttribute.cs
- DependencyPropertyDescriptor.cs
- LZCodec.cs
- XmlNodeComparer.cs
- grammarelement.cs
- SystemColors.cs
- NotImplementedException.cs
- SqlNode.cs
- BindingList.cs
- SQLBinaryStorage.cs
- ContentType.cs
- CodeArrayIndexerExpression.cs
- DesigntimeLicenseContext.cs
- Drawing.cs
- PrivateFontCollection.cs
- MouseActionValueSerializer.cs
- BooleanStorage.cs
- BridgeDataReader.cs
- SystemWebCachingSectionGroup.cs
- BinaryUtilClasses.cs
- UITypeEditor.cs
- SafeRightsManagementHandle.cs
- UpdateEventArgs.cs
- ToolStripDropDownClosingEventArgs.cs
- Vector.cs
- OutputCacheProfile.cs
- CurrentTimeZone.cs
- DataSysAttribute.cs
- ControlEvent.cs
- Root.cs
- FormsAuthenticationModule.cs
- BinaryFormatterWriter.cs
- AsymmetricAlgorithm.cs
- DefaultTextStore.cs
- ObfuscationAttribute.cs
- TreeNode.cs
- ObjectView.cs
- InvokePatternIdentifiers.cs
- SBCSCodePageEncoding.cs
- TemplateBamlTreeBuilder.cs
- NumericUpDown.cs
- _ConnectionGroup.cs
- PropertyKey.cs
- TailCallAnalyzer.cs
- Translator.cs
- StateItem.cs
- ColorConverter.cs
- FieldAccessException.cs
- AdapterUtil.cs
- ModuleBuilder.cs
- TypeInitializationException.cs
- SqlClientPermission.cs
- NetMsmqSecurity.cs
- XmlSchemaAttribute.cs
- FileLevelControlBuilderAttribute.cs
- ObjectDataSourceFilteringEventArgs.cs
- SimpleFieldTemplateUserControl.cs
- DataSourceSelectArguments.cs
- dbdatarecord.cs
- MetadataSerializer.cs
- JulianCalendar.cs
- ToolBarPanel.cs
- HttpListenerResponse.cs
- DebuggerAttributes.cs
- EntityAdapter.cs
- CodeTypeMemberCollection.cs
- ComplexObject.cs
- StatusBar.cs
- HostingEnvironmentSection.cs
- SystemBrushes.cs
- DataObjectCopyingEventArgs.cs
- SizeConverter.cs
- _SslSessionsCache.cs
- CompressedStack.cs
- ApplicationServicesHostFactory.cs
- TagMapCollection.cs
- ReferencedCategoriesDocument.cs
- TextEncodedRawTextWriter.cs
- EntityProviderServices.cs
- XmlMemberMapping.cs
- CaseStatement.cs
- SapiRecoInterop.cs