Share via


ServiceConstructor<TService>, classe

Fournit une classe de base pour les constructeurs de service.

Hiérarchie d'héritage

System.Object
  Microsoft.Data.Schema.ServiceConstructor
    Microsoft.Data.Schema.ServiceConstructor<TService>
      En savoir plus...

Espace de noms :  Microsoft.Data.Schema
Assembly :  Microsoft.Data.Schema (dans Microsoft.Data.Schema.dll)

Syntaxe

'Déclaration
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 ne prend pas en charge les types ou les méthodes génériques.

Paramètres de type

  • TService
    Type qui détermine le type d'objet de service que les instances de cette classe peuvent créer.

Le type ServiceConstructor<TService> expose les membres suivants.

Constructeurs

  Nom Description
Méthode protégée ServiceConstructor<TService> Initialise une nouvelle instance de la classe ServiceConstructor<TService>.

Début

Propriétés

  Nom Description
Propriété publique DatabaseSchemaProvider Obtient ou définit le fournisseur de schémas de base de données actuel. (Hérité de ServiceConstructor.)

Début

Méthodes

  Nom Description
Méthode publique Clone Copie l'instance actuelle.
Méthode publique ConstructService Appelé par DatabaseSchemaProvider pour créer une instance du type TService spécifié.
Méthode protégée ConstructServiceImplementation Appelée par laConstructService méthode pour retourner une nouvelle instanceTServiceType du spécifié.
Méthode publique Equals Détermine si l'Object spécifié est égal à l'Object en cours. (Hérité de Object.)
Méthode protégée Finalize Autorise un objet à tenter de libérer des ressources et d'exécuter d'autres opérations de nettoyage avant qu'il ne soit récupéré par l'opération garbage collection. (Hérité de Object.)
Méthode publique GetHashCode Sert de fonction de hachage pour un type particulier. (Hérité de Object.)
Méthode publique GetType Obtient le Type de l'instance actuelle. (Hérité de Object.)
Méthode protégée MemberwiseClone Crée une copie superficielle de l'objet Object actif. (Hérité de Object.)
Méthode publique ToString Retourne une chaîne qui représente l'objet actuel. (Hérité de Object.)

Début

Notes

Un DatabaseSchemaProvider utilise cette classe ServiceConstructor<TService> lorsqu'il exécute ses méthodes GetService<TService> et GetServiceConstructor<TServiceConstructor>.

Remarques à l'attention des héritiers

Vous pouvez ajouter des propriétés aux classes dérivées de ServiceConstructor<TService>, puis les appliquer ensuite aux instances créées par la méthode ConstructServiceImplementation.

Sécurité des threads

Tous les membres static (Shared en Visual Basic) publics de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.

Voir aussi

Référence

Microsoft.Data.Schema, espace de noms

DatabaseSchemaProvider

ConstructService

GetService<TService>

GetServiceConstructor<TServiceConstructor>

Hiérarchie d'héritage

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