Search Results for

    Show / Hide Table of Contents

    Class OrganizationRepository

    Organization repository memory implementation

    Inheritance
    System.Object
    OrganizationRepository
    Implements
    IOrganizationRepository
    IRepositoryBase<System.Guid, Organization>
    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.TenantSystem.Data.Memory
    Assembly: Simplic.TenantSystem.Data.Memory.dll
    Syntax
    public class OrganizationRepository : IOrganizationRepository

    Constructors

    | Improve this Doc View Source

    OrganizationRepository()

    Initialize repository

    Declaration
    public OrganizationRepository()

    Fields

    | Improve this Doc View Source

    organizations

    Declaration
    public IList<Organization> organizations
    Field Value
    Type Description
    System.Collections.Generic.IList<Organization>

    Methods

    | Improve this Doc View Source

    Delete(Organization)

    Delete organization

    Declaration
    public bool Delete(Organization obj)
    Parameters
    Type Name Description
    Organization obj

    Object instance

    Returns
    Type Description
    System.Boolean

    True if successfuk

    | Improve this Doc View Source

    Delete(Guid)

    Delete organization by id

    Declaration
    public bool Delete(Guid id)
    Parameters
    Type Name Description
    System.Guid id

    Unique id

    Returns
    Type Description
    System.Boolean

    True if successfuk

    | Improve this Doc View Source

    Get(Guid)

    Gets an organization by its id

    Declaration
    public Organization Get(Guid id)
    Parameters
    Type Name Description
    System.Guid id

    Unique organization id

    Returns
    Type Description
    Organization

    organization instance

    | Improve this Doc View Source

    GetAll()

    Get all organizations

    Declaration
    public IEnumerable<Organization> GetAll()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<Organization>

    Enumerable of organizations

    | Improve this Doc View Source

    GetByName(String)

    Declaration
    public Organization GetByName(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    Organization
    | Improve this Doc View Source

    GetByUserId(Int32)

    Get all assigned organizations

    Declaration
    public IEnumerable<Organization> GetByUserId(int userId)
    Parameters
    Type Name Description
    System.Int32 userId

    Unique user id

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

    Get all tenants that are enabled for the given user

    | Improve this Doc View Source

    GetGroupsBySubOrganizationCount(Int32)

    Gets all groups which have n sub items/organizations

    Declaration
    public IEnumerable<Organization> GetGroupsBySubOrganizationCount(int count)
    Parameters
    Type Name Description
    System.Int32 count

    Sub organization count

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

    Enumerable of organizations

    | Improve this Doc View Source

    Save(Organization)

    Save existing or new organization

    Declaration
    public bool Save(Organization obj)
    Parameters
    Type Name Description
    Organization obj

    organization instance

    Returns
    Type Description
    System.Boolean

    True if successfuk

    Implements

    IOrganizationRepository
    IRepositoryBase<, >
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx