> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# WorkerLifecycle

> A worker's employment-lifecycle milestones from the source: tenure dates and how (if at all) they separated.

A worker's employment-lifecycle milestones from the source: tenure dates and how (if at all) they separated. The termination reason keeps the source's raw code and name (flat strings rather than a [CodedValue](https://klef.ai/docs/connector-sdk/reference/model-workers/codedvalue.md) because EF Core can't bind a nested complex type through this record's constructor); [SeparationType](https://klef.ai/docs/connector-sdk/reference/model-workers-lifecycle/workerlifecycle.md) is the normalized signal that, for example, a transfer should not deprovision accounts.

```csharp
public sealed record WorkerLifecycle : IEquatable<WorkerLifecycle>
```

**Implements:** `IEquatable<WorkerLifecycle>`

## Constructors

```csharp
public WorkerLifecycle(LocalDate? OriginalHireDate, LocalDate? SeniorityDate, LocalDate? ProbationEndDate, LocalDate? TerminationDate, SeparationType SeparationType, string TerminationReasonCode, string TerminationReasonName, Instant? TerminatedAt = null)
```

A worker's employment-lifecycle milestones from the source: tenure dates and how (if at all) they separated. The termination reason keeps the source's raw code and name (flat strings rather than a [CodedValue](https://klef.ai/docs/connector-sdk/reference/model-workers/codedvalue.md) because EF Core can't bind a nested complex type through this record's constructor); [SeparationType](https://klef.ai/docs/connector-sdk/reference/model-workers-lifecycle/workerlifecycle.md) is the normalized signal that, for example, a transfer should not deprovision accounts.

### Parameters

**OriginalHireDate** `LocalDate?` *required*

**SeniorityDate** `LocalDate?` *required*

**ProbationEndDate** `LocalDate?` *required*

**TerminationDate** `LocalDate?` *required*

**SeparationType** `SeparationType` *required*

**TerminationReasonCode** `string` *required*

**TerminationReasonName** `string` *required*

**TerminatedAt** `Instant?`

The moment the source ended the employment, when it records one.

## Fields

**Empty** `WorkerLifecycle` *required*

## Properties

**IsTransfer** `bool` *required*

[true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) when the worker is moving rather than leaving.

**OriginalHireDate** `LocalDate?`

**ProbationEndDate** `LocalDate?`

**SeniorityDate** `LocalDate?`

**SeparationType** `SeparationType` *required*

**TerminatedAt** `Instant?`

The moment the source ended the employment, when it records one.

**TerminationDate** `LocalDate?`

**TerminationReasonCode** `string` *required*

**TerminationReasonName** `string` *required*

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out LocalDate? OriginalHireDate, out LocalDate? SeniorityDate, out LocalDate? ProbationEndDate, out LocalDate? TerminationDate, out SeparationType SeparationType, out string TerminationReasonCode, out string TerminationReasonName, out Instant? TerminatedAt)
```

#### Parameters

**OriginalHireDate** `LocalDate?` *required*

**SeniorityDate** `LocalDate?` *required*

**ProbationEndDate** `LocalDate?` *required*

**TerminationDate** `LocalDate?` *required*

**SeparationType** `SeparationType` *required*

**TerminationReasonCode** `string` *required*

**TerminationReasonName** `string` *required*

**TerminatedAt** `Instant?` *required*

### Equals()

```csharp
public bool Equals(WorkerLifecycle? other)
```

#### Parameters

**other** `WorkerLifecycle` *required*

#### Returns

`bool`

```csharp
public override bool Equals(object? obj)
```

#### Parameters

**obj** `object` *required*

#### Returns

`bool`

### GetHashCode()

```csharp
public override int GetHashCode()
```

#### Returns

`int`

### operator !=()

```csharp
public static bool operator !=(WorkerLifecycle? left, WorkerLifecycle? right)
```

#### Parameters

**left** `WorkerLifecycle` *required*

**right** `WorkerLifecycle` *required*

#### Returns

`bool`

### operator ==()

```csharp
public static bool operator ==(WorkerLifecycle? left, WorkerLifecycle? right)
```

#### Parameters

**left** `WorkerLifecycle` *required*

**right** `WorkerLifecycle` *required*

#### Returns

`bool`

### ToString()

```csharp
public override string ToString()
```

#### Returns

`string`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.