Search Results for

    Show / Hide Table of Contents

    Interface IEmployee

    The system entity for an Employee, which defines a relationship between a ICompany and IPerson

    See https://help.lemonedge.com/help/financial-services-engine/entities/companies/employees-view.html for more information

    Inherited Members
    IBaseEntity.GetLabel(string)
    IBaseEntity.SetLabel(string, string)
    IBaseEntity.SetSilentLabel(string, string)
    IBaseEntity.AccountID
    IBaseEntity.ID
    IBaseEntity.LastUpdated
    IBaseEntity.ModifiedByUserID
    IBaseEntity.CanvasID
    IBaseEntity.AlgorithmStepID
    IBaseEntity.SafeID
    IEquatable<IBaseEntity>.Equals(IBaseEntity)
    INotifyPropertyChanged.PropertyChanged
    INotifyPropertyChanging.PropertyChanging
    ICloneableAsync.Clone(object)
    ICloneableAsync.CopyFromSource(object)
    ICanTrackProperties.HasTrackedPropertyChanged(string)
    ICanTrackProperties.OriginalTrackedPropertyValue(string)
    ICanTrackProperties.OriginalTrackedPropertyValue<T>(string)
    ICanTrackProperties.ClearTrackedOriginalValues()
    ICanTrackProperties.GetAllOriginalTrackedPropertyValues()
    Namespace: LemonEdge.API.Entities.FinancialServices.LegalEntity
    Assembly: LemonEdge.API.Entities.FinancialServices.dll
    Syntax
    [EntityDefinition(EntityID.Employee, "dbo.LT_Employees", "Employee", CustomToString = true)]
    [DefaultEntityIcon(ImageType.CompanyOrg)]
    public interface IEmployee : IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties

    Properties

    EmployeeID

    [Key] Links to IPerson. A link to a Person in the system who is employed by this Company

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false)]
    [EntityRelationship(EntityID.Person, "ID", SingleJoinType.One, "Employee", "Employees", DeleteWithRelationship = false, PartOfParentSet = false, LinkToItemInSet = false, InheritPermissions = false)]
    [EntityDescription("A child company of this parent company.")]
    [EntityKeyProperty]
    [PropertyValidation("true", "MyItem.ParentCompanyID != MyItem.EmployeeID", "The parent company and employee can not be the same entity - recursive relationships are not allowed.")]
    Guid EmployeeID { get; set; }
    Property Value
    Type Description
    Guid

    ManagerID

    Links to IPerson. The employee within this Company that this Employee reports to (if any).

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, true)]
    [EntityRelationship(EntityID.Person, "ID", SingleJoinType.ZeroToOne, "Manager", "Manager Of", DeleteWithRelationship = false, PartOfParentSet = false, LinkToItemInSet = false, InheritPermissions = false)]
    [EntityDescription("The manager of this employee.")]
    Guid? ManagerID { get; set; }
    Property Value
    Type Description
    Guid?

    ParentCompanyID

    [Key] Links to ICompany. The parent company the specified IPerson is an employee of

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false)]
    [EntityRelationship(EntityID.ObjectEntity, "ID", SingleJoinType.One, "Parent Legal Entity", "Employees", DeleteWithRelationship = false, PartOfParentSet = false, LinkToItemInSet = false, InheritPermissions = true)]
    [EntityDescription("The parent company for this employee.")]
    [EntityKeyProperty]
    [PropertyValidation("true", "MyItem.ParentCompanyID != MyItem.EmployeeID", "The parent company and employee can not be the same entity - recursive relationships are not allowed.")]
    Guid ParentCompanyID { get; set; }
    Property Value
    Type Description
    Guid

    Role

    The employees role within the Company

    Declaration
    [EntityProperty(SQLType.NVarChar, 500, true)]
    [EntityDescription("The employees role.")]
    string Role { get; set; }
    Property Value
    Type Description
    string

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.