ServiceConstructor<TService> 类

为服务构造函数提供基类。

继承层次结构

System.Object
  Microsoft.Data.Schema.ServiceConstructor
    Microsoft.Data.Schema.ServiceConstructor<TService>
      更多...

命名空间:  Microsoft.Data.Schema
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)

语法

声明
Public MustInherit Class ServiceConstructor(Of TService) _
    Inherits ServiceConstructor
public abstract class ServiceConstructor<TService> : ServiceConstructor
generic<typename TService>
public ref class ServiceConstructor abstract : public ServiceConstructor
[<AbstractClass>]
type ServiceConstructor<'TService> =  
    class
        inherit ServiceConstructor
    end
JScript 不支持泛型类型或方法。

类型参数

  • TService
    一个 Type,决定此类的实例可创建的服务对象的类型。

ServiceConstructor<TService> 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 ServiceConstructor<TService> 初始化 ServiceConstructor<TService> 类的新实例。

页首

属性

  名称 说明
公共属性 DatabaseSchemaProvider 获取或设置当前的数据库架构提供程序。 (继承自 ServiceConstructor。)

页首

方法

  名称 说明
公共方法 Clone 复制当前实例。
公共方法 ConstructService DatabaseSchemaProvider 调用以创建指定 TService 类型的实例。
受保护的方法 ConstructServiceImplementation 由调用ConstructService方法返回一个新的实例指定的TServiceType
公共方法 Equals 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

备注

DatabaseSchemaProvider 在执行它的 GetService<TService>GetServiceConstructor<TServiceConstructor> 方法时使用此 ServiceConstructor<TService> 类。

对继承者的说明

您可以为派生自 ServiceConstructor<TService> 的类添加属性,这些属性可以再应用于 ConstructServiceImplementation 方法创建的实例。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.Data.Schema 命名空间

DatabaseSchemaProvider

ConstructService

GetService<TService>

GetServiceConstructor<TServiceConstructor>

继承层次结构

System.Object
  Microsoft.Data.Schema.ServiceConstructor
    Microsoft.Data.Schema.ServiceConstructor<TService>
      Microsoft.Data.Schema.Build.DatabaseTaskHostConstructor
      Microsoft.Data.Schema.Build.SchemaDeploymentConstructor
      Microsoft.Data.Schema.SchemaModel.DataSchemaModelConstructor
      Microsoft.Data.Schema.SchemaModel.ModelBuilderConstructor
      Microsoft.Data.Schema.SchemaModel.ModelComparerConstructor
      Microsoft.Data.Schema.SchemaModel.ParserConstructor
      Microsoft.Data.Schema.SchemaModel.ReverseEngineerConstructor
      Microsoft.Data.Schema.SchemaModel.ScriptDomGeneratorConstructor
      Microsoft.Data.Schema.SchemaModel.ScriptGeneratorConstructor
      Microsoft.Data.Schema.ScriptDom.Sql.SqlScriptComparerConstructor
      Microsoft.Data.Schema.Sql.SchemaModel.SqlInterpreterConstructor