Show / Hide Table of Contents

Class Employee

The employee client object

Inheritance
object
ModelBase
Employee
EmployeeSet
Implements
IEmployee
IModel
IAttributeObject
IKeyEquatable<IEmployee>
IEquatable<IEmployee>
IIdentifierObject
Inherited Members
ModelBase.ToString()
ModelBase.Id
ModelBase.IsExistingObject
ModelBase.IsNewObject
ModelBase.Status
ModelBase.Created
ModelBase.Updated
ModelBase.UpdateMode
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Client.Model
Assembly: PayrollEngine.Client.Core.dll
Syntax
public class Employee : ModelBase, IEmployee, IModel, IAttributeObject, IKeyEquatable<IEmployee>, IEquatable<IEmployee>, IIdentifierObject

Constructors

Employee()

Initializes a new instance

Declaration
public Employee()

Employee(Employee)

Initializes a new instance from a copy

Declaration
public Employee(Employee copySource)
Parameters
Type Name Description
Employee copySource

The copy source

Properties

Attributes

Declaration
[JsonPropertyOrder(106)]
public Dictionary<string, object> Attributes { get; set; }
Property Value
Type Description
Dictionary<string, object>

Calendar

The employee calendar (fallback: division calendar)

Declaration
[StringLength(128)]
[JsonPropertyOrder(105)]
public string Calendar { get; set; }
Property Value
Type Description
string

Culture

The employee culture name based on RFC 4646 (fallback: division culture)

Declaration
[StringLength(128)]
[JsonPropertyOrder(104)]
public string Culture { get; set; }
Property Value
Type Description
string

Divisions

Employee division names

Declaration
[JsonPropertyOrder(103)]
public List<string> Divisions { get; set; }
Property Value
Type Description
List<string>

FirstName

The first name of the employee

Declaration
[StringLength(128)]
[JsonPropertyOrder(101)]
public string FirstName { get; set; }
Property Value
Type Description
string

Identifier

The employee identifier

Declaration
[Required]
[StringLength(128)]
[JsonPropertyOrder(100)]
public string Identifier { get; set; }
Property Value
Type Description
string

LastName

The last name of the employee

Declaration
[Required]
[StringLength(128)]
[JsonPropertyOrder(102)]
public string LastName { get; set; }
Property Value
Type Description
string

Methods

EqualKey(IEmployee)

Test for the same item key

Declaration
public virtual bool EqualKey(IEmployee compare)
Parameters
Type Name Description
IEmployee compare
Returns
Type Description
bool

Equals(IEmployee)

Declaration
public virtual bool Equals(IEmployee compare)
Parameters
Type Name Description
IEmployee compare
Returns
Type Description
bool

GetUiString()

The object UI string

Declaration
public override string GetUiString()
Returns
Type Description
string
Overrides
ModelBase.GetUiString()

Implements

IEmployee
IModel
IAttributeObject
IKeyEquatable<T>
IEquatable<T>
IIdentifierObject

Extension Methods

ConsoleExtensions.WriteProperties(object, bool)
ValueTypeExtensions.GetValueType(object)
ObjectInfo.GetPropertyValue(object, string)
ObjectInfo.GetPropertyValue<T>(object, string, T)
ObjectInfo.ResolvePropertyValue(object, string)
ObjectInfo.SetPropertyValue(object, string, object)
☀
☾
Back to top Generated by DocFX