Class AddonViewModel
Represents a viewmodel, which adds it's custom properties by the given table name
Implements
Inherited Members
Namespace: Simplic.Framework.UI
Assembly: Simplic.Framework.Base.dll
Syntax
public abstract class AddonViewModel : ExtendableViewModel, IPyExtendableViewModel
Properties
| Improve this Doc View SourcePrimaryKeyColumn
Gets the primary key column anme
Declaration
public abstract string PrimaryKeyColumn { get; }
Property Value
Type | Description |
---|---|
System.String |
Scheme
Gets the table schmene. Default is 'admin'
Declaration
public virtual string Scheme { get; }
Property Value
Type | Description |
---|---|
System.String |
TableName
Gets the table name
Declaration
public abstract string TableName { get; }
Property Value
Type | Description |
---|---|
System.String |
UseDelete
Gets or sets whether data should be deleted. Default is false
Declaration
public virtual bool UseDelete { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceDelete()
Delete addon values, only if UseDelete is true
Declaration
public virtual void Delete()
Load(ICustomAddonViewModel)
Initialize the viewmodel and fill its content
Declaration
public virtual void Load(ICustomAddonViewModel parent)
Parameters
Type | Name | Description |
---|---|---|
ICustomAddonViewModel | parent | Parent viewmodel, which will be extended using the viewmodel |
Save()
Save addon values
Declaration
public virtual void Save()