MethodSignatureGenerator 类

定义

此类用于生成数据库查询方法签名,与类型化数据集生成器所创建的签名相同。This class is used to generate a database query method signature, as it will be created by the typed dataset generator.

public ref class MethodSignatureGenerator
public class MethodSignatureGenerator
type MethodSignatureGenerator = class
Public Class MethodSignatureGenerator
继承
MethodSignatureGenerator

构造函数

MethodSignatureGenerator()

初始化 MethodSignatureGenerator 类的新实例。Initializes a new instance of the MethodSignatureGenerator class.

属性

CodeProvider

获取或设置 CodeDomProvider 对象。Gets or sets the CodeDomProvider object.

ContainerParameterType

获取或设置查询将填充的对象类型。Gets or sets the type of object that the query will fill.

DataSetClassName

获取或设置要填充的类型化数据集的类型名称。Gets or sets the type name of the typed dataset to be filled.

IsGetMethod

获取或设置一个值,该值指示生成的签名是否需要返回 DataTable 对象。Gets or sets a value that indicates whether the signature generated needs to return a DataTable object.

PagingMethod

获取或设置一个布尔值,该值指定方法是否支持分页。Gets or sets a Boolean value specifying whether the method supports paging.

ParameterOption

获取或设置要用作参数的类型的类别。Gets or sets the category of types to use for parameters.

TableClassName

获取或设置要填充的类型化表的类型名称。Gets or sets the type name of the typed table to fill.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GenerateMethod()

返回表示数据库查询的代码成员方法,由类型化数据集生成器生成。Returns the code member method representing the database query, as generated by the typed dataset generator.

GenerateMethodSignature()

返回表示数据库查询方法签名的字符串,由类型化数据集生成器生成。Returns a string representing the database query method signature, as generated by the typed dataset generator.

GenerateUpdatingMethods()

返回一个代码类型声明,其中包含与数据库查询关联的 Insert、Update 和 Delete 方法。Returns a code type declaration containing the Insert, Update, and Delete methods associated with the database query.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
SetDesignTableContent(String)

设置将为其生成数据库查询方法的设计表的架构。Sets the schema of the design table for which the database query method will be generated.

SetMethodSourceContent(String)

设置将为其生成方法签名的数据库查询。Sets the database query for which the method signature will be generated.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于