EntityClassGenerator 类
定义
由代码生成命令行工具和 Visual Studio 中的工具使用,生成用于与数据服务通信的强类型客户端对象。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.
public ref class EntityClassGenerator sealed
public sealed class EntityClassGenerator
type EntityClassGenerator = class
Public NotInheritable Class EntityClassGenerator
- 继承
-
EntityClassGenerator
注解
此类不能用于公共用途,并由代码生成命令行工具和 Visual Studio 中的工具使用,生成用于与数据服务通信的强类型客户端对象。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.
构造函数
| EntityClassGenerator() |
初始化 EntityClassGenerator 类的新实例。Initializes a new instance of the EntityClassGenerator class. |
| EntityClassGenerator(LanguageOption) |
初始化 EntityClassGenerator 类的新实例。Initializes a new instance of the EntityClassGenerator class. |
属性
| EdmToObjectNamespaceMap |
获取在生成实体类时使用的 |
| LanguageOption |
获取在生成数据模型时使用的语言选项。Gets the language option used in generation of the data model. |
| UseDataServiceCollection |
获取或设置代码生成是否应包含支持数据绑定所需的代码。Gets or sets whether code generation should include the code that is required to support data binding. |
| Version |
获取或设置生成的代码所面向的 WCF Data Services 的版本。Gets or sets the version of WCF Data Services that the generated code targets. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GenerateCode(XmlReader, String) |
为对象模型生成代码。Generates code for the object model. |
| GenerateCode(XmlReader, TextWriter, String) |
依据参数标识的开关为数据模型生成代码。Generates code for the data model from switches identified by parameters. |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
事件
| OnPropertyGenerated |
在生成属性时发生。Occurs when a property is generated. |
| OnTypeGenerated |
在生成类型时发生。Occurs when a type is generated. |