ServiceConstructor<TService> Class
Provides a base class for service constructors.
Inheritance Hierarchy
System.Object
Microsoft.Data.Schema.ServiceConstructor
Microsoft.Data.Schema.ServiceConstructor<TService>
More...
Namespace: Microsoft.Data.Schema
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
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 does not support generic types or methods.
Type Parameters
- TService
A Type that determines the type of service object that instances of this class can create.
The ServiceConstructor<TService> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ServiceConstructor<TService> | Initializes a new instance of the ServiceConstructor<TService> class. |
Top
Properties
Name | Description | |
---|---|---|
DatabaseSchemaProvider | Gets or sets the current database schema provider. (Inherited from ServiceConstructor.) |
Top
Methods
Name | Description | |
---|---|---|
Clone | Duplicates the current instance. | |
ConstructService | Called by a DatabaseSchemaProvider to create an instance of the specified TService type. | |
ConstructServiceImplementation | Called by the ConstructService method to return a new instance of the specified TService Type. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
A DatabaseSchemaProvider uses this ServiceConstructor<TService> class when it executes its GetService<TService> and GetServiceConstructor<TServiceConstructor> methods.
Notes to Inheritors
You can add properties to classes that are derived from the ServiceConstructor<TService> that can then be applied to the created instances by the ConstructServiceImplementation method.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.Data.Schema Namespace
GetServiceConstructor<TServiceConstructor>
Inheritance Hierarchy
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