Search Results for

    Show / Hide Table of Contents

    Class ContextManager

    Contains the main api functions

    Inheritance
    System.Object
    ContextManager
    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: Simplic.Framework.Extension.UI
    Assembly: Simplic.Framework.Extension.dll
    Syntax
    public class ContextManager

    Methods

    | Improve this Doc View Source

    DeleteAttribute(Attribute)

    Delete an attribute from the database

    Declaration
    public void DeleteAttribute(Attribute attribute)
    Parameters
    Type Name Description
    Attribute attribute
    | Improve this Doc View Source

    DeleteAttributeValues(IList<AttributeValue>)

    Removes a list of values from the database

    Declaration
    public void DeleteAttributeValues(IList<AttributeValue> values)
    Parameters
    Type Name Description
    System.Collections.Generic.IList<AttributeValue> values

    List of values

    | Improve this Doc View Source

    DeleteColumnConfiguration(IList<ContextColumn>)

    Delete all configurations from the database

    Declaration
    public void DeleteColumnConfiguration(IList<ContextColumn> columns)
    Parameters
    Type Name Description
    System.Collections.Generic.IList<ContextColumn> columns

    List of columns

    | Improve this Doc View Source

    DeleteContext(Guid)

    Sets IsDeleted true

    Declaration
    public void DeleteContext(Guid guid)
    Parameters
    Type Name Description
    System.Guid guid
    | Improve this Doc View Source

    DeletePropertyAssignment(PropertyAssignment)

    Remove property assignment from database

    Declaration
    public void DeletePropertyAssignment(PropertyAssignment assignment)
    Parameters
    Type Name Description
    PropertyAssignment assignment

    Assignment instance

    | Improve this Doc View Source

    GetAllAttributes()

    Load all attributes from the database

    Declaration
    public IEnumerable<Attribute> GetAllAttributes()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<Attribute>

    Enumerable of attributes

    | Improve this Doc View Source

    GetAllContexts()

    Load a list of all available contexts

    Declaration
    public IEnumerable<Context> GetAllContexts()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<Context>
    | Improve this Doc View Source

    GetAllPropertyAssignment()

    Get all available property assignments

    Declaration
    public IEnumerable<PropertyAssignment> GetAllPropertyAssignment()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<PropertyAssignment>

    Enumerable of assignments

    | Improve this Doc View Source

    GetAllPropertyDefinitions(Guid)

    Gets all property definitions as enumerable

    Declaration
    public IEnumerable<PropertyDefinition> GetAllPropertyDefinitions(Guid contextId)
    Parameters
    Type Name Description
    System.Guid contextId
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<PropertyDefinition>

    Proeprty definitions

    | Improve this Doc View Source

    GetAttribute(Guid)

    Load an attribute from the database

    Declaration
    public Attribute GetAttribute(Guid id)
    Parameters
    Type Name Description
    System.Guid id

    Unique attribute id

    Returns
    Type Description
    Attribute

    Attribute instance if found

    | Improve this Doc View Source

    GetColumnConfiguration(Nullable<Guid>, Guid)

    Get a list of configurations from the database

    Declaration
    public IEnumerable<ContextColumn> GetColumnConfiguration(Guid? groupId, Guid contextId)
    Parameters
    Type Name Description
    System.Nullable<System.Guid> groupId

    group id

    System.Guid contextId

    Unique stack id

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ContextColumn>

    List of columns

    | Improve this Doc View Source

    GetComposedColumnConfiguration(Guid)

    Get a composed list of configurations

    Declaration
    public IEnumerable<ContextColumn> GetComposedColumnConfiguration(Guid contractGroupId)
    Parameters
    Type Name Description
    System.Guid contractGroupId

    Article group id

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ContextColumn>

    List of composed configurations

    | Improve this Doc View Source

    GetContext(Guid)

    Load an context from the database

    Declaration
    public Context GetContext(Guid id)
    Parameters
    Type Name Description
    System.Guid id

    Unique context id

    Returns
    Type Description
    Context
    | Improve this Doc View Source

    GetContractTableProperties(String)

    Gets all article property types

    Declaration
    public IDictionary<string, Type> GetContractTableProperties(string tableName)
    Parameters
    Type Name Description
    System.String tableName
    Returns
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.Type>
    | Improve this Doc View Source

    GetPropertyAssignmentsByContractGroup(Guid)

    Get all assignments that belongs to an article group

    Declaration
    public IEnumerable<PropertyAssignment> GetPropertyAssignmentsByContractGroup(Guid contractGroupId)
    Parameters
    Type Name Description
    System.Guid contractGroupId

    Unique article group id

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<PropertyAssignment>

    Enumerable of assignments

    | Improve this Doc View Source

    GetPropertyDefinition(Guid)

    Gets a property definition by its id

    Declaration
    public PropertyDefinition GetPropertyDefinition(Guid id)
    Parameters
    Type Name Description
    System.Guid id

    Unique property definition

    Returns
    Type Description
    PropertyDefinition

    Propertydefinition or null

    | Improve this Doc View Source

    LoadAttributeValues(Guid)

    Load all attribute values by an attribute id

    Declaration
    public IEnumerable<AttributeValue> LoadAttributeValues(Guid attributeId)
    Parameters
    Type Name Description
    System.Guid attributeId

    Unique attribute id

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<AttributeValue>

    Enumerable of attribute values

    | Improve this Doc View Source

    SaveAttribute(Attribute)

    Save an attribute in the database

    Declaration
    public void SaveAttribute(Attribute attribute)
    Parameters
    Type Name Description
    Attribute attribute

    Attribute instance

    | Improve this Doc View Source

    SaveAttributeValues(IList<AttributeValue>)

    Save a list of attribute values to the database

    Declaration
    public void SaveAttributeValues(IList<AttributeValue> values)
    Parameters
    Type Name Description
    System.Collections.Generic.IList<AttributeValue> values

    List of values

    | Improve this Doc View Source

    SaveColumnConfiguration(IList<ContextColumn>)

    Save a list of column configurations

    Declaration
    public void SaveColumnConfiguration(IList<ContextColumn> columns)
    Parameters
    Type Name Description
    System.Collections.Generic.IList<ContextColumn> columns

    Columns to save

    | Improve this Doc View Source

    SaveContext(Context)

    writes a context to the database

    Declaration
    public void SaveContext(Context context)
    Parameters
    Type Name Description
    Context context
    | Improve this Doc View Source

    SavePropertyAssignment(PropertyAssignment)

    Insert or update a property assignment in the database

    Declaration
    public void SavePropertyAssignment(PropertyAssignment assignment)
    Parameters
    Type Name Description
    PropertyAssignment assignment

    Assignment instance

    | Improve this Doc View Source

    SavePropertyDefinition(PropertyDefinition, Guid)

    Save a db property in the database

    Declaration
    public void SavePropertyDefinition(PropertyDefinition propertyDefinition, Guid contextId)
    Parameters
    Type Name Description
    PropertyDefinition propertyDefinition

    Db-Property definition

    System.Guid contextId
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx