Share via


EntityClassGenerator Class

Used by the code generation command line tools and tools in Visual Studio to generate strongly typed client-side objects for communicating with data services.

Inheritance Hierarchy

System.Object
  System.Data.Services.Design.EntityClassGenerator

Namespace:  System.Data.Services.Design
Assembly:  Microsoft.Data.Services.Design (in Microsoft.Data.Services.Design.dll)

Syntax

'Declaration
Public NotInheritable Class EntityClassGenerator
'Usage
Dim instance As EntityClassGenerator
public sealed class EntityClassGenerator
public ref class EntityClassGenerator sealed
[<SealedAttribute>]
type EntityClassGenerator =  class end
public final class EntityClassGenerator

The EntityClassGenerator type exposes the following members.

Constructors

  Name Description
Public method EntityClassGenerator() Initializes a new instance of the EntityClassGenerator class.
Public method EntityClassGenerator(LanguageOption) Initializes a new instance of the EntityClassGenerator class.

Top

Properties

  Name Description
Public property EdmToObjectNamespaceMap Gets the EdmToObjectNamespaceMap object used in entity class generation.
Public property LanguageOption Gets the language option used in generation of the data model.
Public property UseDataServiceCollection Gets or sets whether code generation should include the code that is required to support data binding.
Public property Version Gets and sets the version of WCF Data Services that the generated code targets.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GenerateCode(XmlReader, String) Generates code for the object model.
Public method GenerateCode(XmlReader, TextWriter, String) Generates code for the data model from switches identified by parameters.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Events

  Name Description
Public event OnPropertyGenerated Occurs when a property is generated.
Public event OnTypeGenerated Occurs when a type is generated.

Top

Remarks

This class is not intended for public use and is used by the code generation command line tools and tools in Visual Studio to generate strongly typed client-side objects for communicating with data services.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Data.Services.Design Namespace