Interface ISchemaManagerItem<TSchemaManagerSchema>
Typed interface of the item.
Inherited Members
Namespace: Terrasoft.Core
Assembly: Terrasoft.Core.dll
Syntax
public interface ISchemaManagerItem<TSchemaManagerSchema> : ISchemaManagerItem, IManagerItem<TSchemaManagerSchema>, IManagerItem, ICloneable where TSchemaManagerSchema : Schema, ISchemaManagerSchema<TSchemaManagerSchema>, IManagerItemInstance, ICloneable
Type Parameters
Name | Description |
---|---|
TSchemaManagerSchema | The class that is inherited from Schema and implements the ISchemaManagerSchema<TSchemaManagerSchema>, IManagerItemInstance. |
Methods
Assign(TSchemaManagerSchema)
Sets properties of schema to current item of manager.
Declaration
void Assign(TSchemaManagerSchema source)
Parameters
Type | Name | Description |
---|---|---|
TSchemaManagerSchema | source | Schema manager item descriptor. |
Assign(ISchemaManagerItem<TSchemaManagerSchema>)
Sets properties of specified item instance to current one.
Declaration
void Assign(ISchemaManagerItem<TSchemaManagerSchema> source)
Parameters
Type | Name | Description |
---|---|---|
ISchemaManagerItem<TSchemaManagerSchema> | source | Specified schema instance. |
AssignExtraProperties(ExtraPropertyCollection)
Declaration
void AssignExtraProperties(ExtraPropertyCollection source)
Parameters
Type | Name | Description |
---|---|---|
ExtraPropertyCollection | source |
AssignUserProperties(UserPropertyCollection)
Sets user properties from source collection.
Declaration
void AssignUserProperties(UserPropertyCollection source)
Parameters
Type | Name | Description |
---|---|---|
UserPropertyCollection | source | User properties source. |
CloneShallow()
Performs shallow cloning of current instance.
Declaration
object CloneShallow()
Returns
Type | Description |
---|---|
System.Object |
DropInstance()
Removes instance of schema.
Declaration
void DropInstance()
FindPropertyValue<TValue>(Expression<Func<TSchemaManagerSchema, TValue>>, TValue)
Returns the property value by instance expression or defaultValue
if value not found.
Declaration
TValue FindPropertyValue<TValue>(Expression<Func<TSchemaManagerSchema, TValue>> propertyExpression, TValue defaultValue)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<TSchemaManagerSchema, TValue>> | propertyExpression | Expression that locates property. |
TValue | defaultValue | Default value. |
Returns
Type | Description |
---|---|
TValue |
Type Parameters
Name | Description |
---|---|
TValue | The type of the value. |
ForceGetInstance()
Returns schema instance. Initializes schema if it is not initialized.
Declaration
TSchemaManagerSchema ForceGetInstance()
Returns
Type | Description |
---|---|
TSchemaManagerSchema | Instance of schema. |
GetPropertyValue<TValue>(Expression<Func<TSchemaManagerSchema, TValue>>)
Gets the property value by instance expression.
Declaration
TValue GetPropertyValue<TValue>(Expression<Func<TSchemaManagerSchema, TValue>> propertyExpression)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<TSchemaManagerSchema, TValue>> | propertyExpression | Expression that locates property. |
Returns
Type | Description |
---|---|
TValue | Property value. |
Type Parameters
Name | Description |
---|---|
TValue | The type of the value. |
SetPropertyValue<TValue>(Expression<Func<TSchemaManagerSchema, TValue>>, TValue)
Sets the property value by instance expression.
Declaration
void SetPropertyValue<TValue>(Expression<Func<TSchemaManagerSchema, TValue>> propertyExpression, TValue value)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<TSchemaManagerSchema, TValue>> | propertyExpression | Expression that locates property. |
TValue | value | The value to set. |
Type Parameters
Name | Description |
---|---|
TValue | The type of property to set. |