Show / Hide Table of Contents

Class ManagerItem<TInstance>

Manager item.

Inheritance
System.Object
ManagerItem<TInstance>
DataProviderManagerItem<TDataProvider>
DataValueTypeManagerItem
DBMetaActionManagerItem
LicManagerItem
ProcessSchemaElementManagerItem
SchemaManagerItem<TSchemaManagerSchema>
SystemValueManagerItem
Implements
IManagerItem<TInstance>
IManagerItem
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 ManagerItem<TInstance> : IManagerItem<TInstance>, IManagerItem where TInstance : class, IManagerItemInstance
Type Parameters
Name Description
TInstance

The class implementing the IManagerItemInstance interface.

Constructors

ManagerItem()

Declaration
public ManagerItem()

Properties

Caption

Header.

Declaration
public virtual LocalizableString Caption { get; set; }
Property Value
Type Description
LocalizableString

Id

Declaration
public Guid Id { get; set; }
Property Value
Type Description
System.Guid

Instance

The instance of the type of the manager item. If the reference to the instance of the manager item is null, an exception is thrown.

Declaration
public virtual TInstance Instance { get; set; }
Property Value
Type Description
TInstance

Manager

Manager.

Declaration
public virtual IManager Manager { get; }
Property Value
Type Description
IManager

Name

Name.

Declaration
public virtual string Name { get; set; }
Property Value
Type Description
System.String

RealUId

A unique identifier for the manager item that contains the UId of the schema assigned to it when it was created.

Declaration
public Guid RealUId { get; set; }
Property Value
Type Description
System.Guid

SafeInstance

A secure instance of the manager item type. If the reference to the instance of the manager item is null, then null is returned.

Declaration
public virtual TInstance SafeInstance { get; set; }
Property Value
Type Description
TInstance

UId

Identifier of the manager item whose value depends on the schema type. If the schema replaces the parent schema then the UId field is equal the RealUId field of the “original” schema or the UId field is equal the current value of the RealUId field.

Declaration
public Guid UId { get; set; }
Property Value
Type Description
System.Guid

Methods

HandleNameChanging(String)

Updates the contents of the manager item when it is renamed.

Declaration
public virtual void HandleNameChanging(string oldName)
Parameters
Type Name Description
System.String oldName

The old name of the manager item.

Explicit Interface Implementations

IManagerItem.Instance

Manager item instance of the System.Object type. If manager item instance is null, exception is thrown.

Declaration
object IManagerItem.Instance { get; set; }
Returns
Type Description
System.Object

IManagerItem.SafeInstance

A secure instance of the manager item of theSystem.Object type. If the reference to the instance of the manager item is null, then null is returned.

Declaration
object IManagerItem.SafeInstance { get; set; }
Returns
Type Description
System.Object

Implements

IManagerItem<TInstance>
IManagerItem

Extension Methods

ReflectionUtilities.GetPropertyValue(Object, String)
ReflectionUtilities.GetPropertyDefValue(Object, String, Object)
ReflectionUtilities.TryGetPropertyValue(Object, String, out Object)
ReflectionUtilities.HasProperty(Object, String)
ReflectionUtilities.GetPropertyValue(Object, String, BindingFlags)
ReflectionUtilities.GetPropertyValueByPath(Object, String)
ReflectionUtilities.SetPropertyValue(Object, String, Object)
ReflectionUtilities.TrySetPropertyValue(Object, String, Object)
ValidateUtilities.CheckArgumentNull(Object, String)
ValidateUtilities.CheckDependencyNull(Object, String)
ValidateUtilities.EnsureDependencyNotNull<T>(T, String)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance, Boolean)
NSubstituteExtension.Protected(Object, String, Object[])
NSubstituteExtension.Protected(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedProperty(Object, String)
NSubstituteExtension.MatchInstance<T>(T)
SubstituteUtilities.GetIsSubstituteObject(Object)
SubstituteUtilities.Instead<TInstance, TValue>(TInstance, Func<TInstance, TValue>)
Back to top Generated by DocFX