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
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
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 |