Class SchemaManagerProvider
Provides methods and properties to manage schema managers.
Inheritance
System.Object
SchemaManagerProvider
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Core
Assembly: Terrasoft.Core.dll
Syntax
public class SchemaManagerProvider : ISchemaManagerProvider
Constructors
SchemaManagerProvider(AppConnection)
Initializes a new instance of the SchemaManagerProvider class.
Declaration
public SchemaManagerProvider(AppConnection appConnection)
Parameters
Type | Name | Description |
---|---|---|
AppConnection | appConnection | Application connection. |
SchemaManagerProvider(SysWorkspace)
Declaration
[Obsolete("7.9.1 | Use constructor with AppConnection parameter")]
public SchemaManagerProvider(SysWorkspace workspace)
Parameters
Type | Name | Description |
---|---|---|
SysWorkspace | workspace |
Properties
AppConnection
Application connection.
Declaration
public AppConnection AppConnection { get; }
Property Value
Type | Description |
---|---|
AppConnection |
ConfigurationSectionName
Declaration
protected string ConfigurationSectionName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ManagerNames
Manager names collection.
Declaration
public Collection<string> ManagerNames { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.Collection<System.String> |
Settings
Declaration
protected SchemaManagerProviderConfigurationSection Settings { get; set; }
Property Value
Type | Description |
---|---|
SchemaManagerProviderConfigurationSection |
UserConnection
Declaration
[Obsolete("7.9.1 | This property will be deleted")]
public UserConnection UserConnection { get; set; }
Property Value
Type | Description |
---|---|
UserConnection |
Workspace
Workspace.
Declaration
public SysWorkspace Workspace { get; }
Property Value
Type | Description |
---|---|
SysWorkspace |
Methods
GetManager(String)
Creates schema manager.
Declaration
public virtual ISchemaManager GetManager(string managerName)
Parameters
Type | Name | Description |
---|---|---|
System.String | managerName | Schema manager name. |
Returns
Type | Description |
---|---|
ISchemaManager | Schema manager. |
Remarks
Schema manager is created only once. After creating it is cached and will be returned on next request.
GetManager<T>()
Creates schema manager.
Declaration
public T GetManager<T>()
Returns
Type | Description |
---|---|
T | Schema manager. |
Type Parameters
Name | Description |
---|---|
T | Schema manager type. |
Initialize(ConfigurationSection)
Initializes an instance of the SchemaManagerProvider class
Declaration
public void Initialize(ConfigurationSection schemaManagerProviderConfigurationSection)
Parameters
Type | Name | Description |
---|---|---|
ConfigurationSection | schemaManagerProviderConfigurationSection | Configuration data. |
RefreshManager(String)
Refreshes schema manager.
Declaration
public void RefreshManager(string managerName)
Parameters
Type | Name | Description |
---|---|---|
System.String | managerName | Schema manager name. |
Remarks
Refreshes only cached schema manager.