为服务构造函数提供基类。
继承层次结构
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> 类型公开以下成员。
构造函数
| 名称 | 说明 | |
|---|---|---|
| .gif) | ServiceConstructor<TService> | 初始化 ServiceConstructor<TService> 类的新实例。 | 
页首
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | DatabaseSchemaProvider | 获取或设置当前的数据库架构提供程序。 (继承自 ServiceConstructor。) | 
页首
方法
| 名称 | 说明 | |
|---|---|---|
| .gif) | Clone | 复制当前实例。 | 
| .gif) | ConstructService | 由 DatabaseSchemaProvider 调用以创建指定 TService 类型的实例。 | 
| .gif) | ConstructServiceImplementation | 由调用ConstructService方法返回一个新的实例指定的TServiceType。 | 
| .gif) | Equals | 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。) | 
| .gif) | Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) | 
| .gif) | GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) | 
| .gif) | GetType | 获取当前实例的 Type。 (继承自 Object。) | 
| .gif) | MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) | 
| .gif) | ToString | 返回表示当前对象的字符串。 (继承自 Object。) | 
页首
备注
DatabaseSchemaProvider 在执行它的 GetService<TService> 和 GetServiceConstructor<TServiceConstructor> 方法时使用此 ServiceConstructor<TService> 类。
对继承者的说明
您可以为派生自 ServiceConstructor<TService> 的类添加属性,这些属性可以再应用于 ConstructServiceImplementation 方法创建的实例。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参见
参考
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