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

# Class DbObject

Namespace: [OpenTD](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD)\
Assembly: OpenTD.dll

Base class for objects stored in the AutoCAD database
and uniquely-identified by AutoCAD handles.

```csharp theme={null}
[MessagePackObject(true)]
public class DbObject : OpenTDObject, IUpdatable
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[OpenTDObject](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.OpenTDObject.md) ←
[DbObject](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.DbObject.md)

#### Derived

[Orbit](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.RadCAD.Orbit.md),
[TdDbEntityData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.TdDbEntityData.md)

## Implements

[IUpdatable](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.IUpdatable.md)

## Inherited Members

[OpenTDObject.SetFrom(OpenTDObject)](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.OpenTDObject.md#setfrom-opentdobject),
[OpenTDObject.Update()](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.OpenTDObject.md#update),
[OpenTDObject.UpdateFromTD()](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.OpenTDObject.md#updatefromtd),
[OpenTDObject.UpdateIn(ThermalDesktop)](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.OpenTDObject.md#updatein-thermaldesktop),
[OpenTDObject.CreateIn(ThermalDesktop)](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.OpenTDObject.md#createin-thermaldesktop),
[OpenTDObject.TdProxy](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.OpenTDObject.md#tdproxy),
[object.Equals(object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone),
[object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Constructors

### DbObject()

```csharp theme={null}
public DbObject()
```

### DbObject(string)

```csharp theme={null}
public DbObject(string _Handle)
```

#### Parameters

`_Handle` [string](https://learn.microsoft.com/dotnet/api/system.string)

## Properties

### Handle

```csharp theme={null}
public string Handle { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### TypeName

```csharp theme={null}
public string TypeName { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

## Methods

### CreateIn(ThermalDesktop)

Creates the TD entity in the specified TD instance.

```csharp theme={null}
public override void CreateIn(ThermalDesktop td)
```

#### Parameters

`td` [ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.ThermalDesktop.md)

### Equals(object)

Determines whether the specified object is equal to the current object.

```csharp theme={null}
public override bool Equals(object obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)

The object to compare with the current object.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

[true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if the specified object  is equal to the current object; otherwise, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).

### GetHashCode()

Serves as the default hash function.

```csharp theme={null}
public override int GetHashCode()
```

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

A hash code for the current object.

### SetFrom(DbObject)

```csharp theme={null}
public void SetFrom(DbObject x)
```

#### Parameters

`x` [DbObject](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.DbObject.md)

### Update()

Updates the TD entity with the latest client data.

```csharp theme={null}
public override void Update()
```

### UpdateFromTD()

Updates the client-side instance with the latest data from the TD entity.

```csharp theme={null}
public override void UpdateFromTD()
```

## Operators

### operator ==(DbObject, DbObject)

```csharp theme={null}
public static bool operator ==(DbObject first, DbObject second)
```

#### Parameters

`first` [DbObject](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.DbObject.md)

`second` [DbObject](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.DbObject.md)

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### operator !=(DbObject, DbObject)

```csharp theme={null}
public static bool operator !=(DbObject first, DbObject second)
```

#### Parameters

`first` [DbObject](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.DbObject.md)

`second` [DbObject](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.DbObject.md)

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)
