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

# ColumnMetadata

> Contains metadata about a column in a table.

## Definition

**Assembly:** CloudNimble.BlazorEssentials.TursoDb.dll

**Namespace:** CloudNimble.BlazorEssentials.TursoDb.Schema

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
CloudNimble.BlazorEssentials.TursoDb.Schema.ColumnMetadata
```

## Summary

Contains metadata about a column in a table.

## Constructors

### &#x20;.ctor

Initializes a new instance of the [ColumnMetadata](https://easyaf.nimbleapps.cloud/blazoressentials/api-reference/CloudNimble/BlazorEssentials/TursoDb/Schema/ColumnMetadata.md) class.

#### Syntax

```csharp theme={"dark"}
public ColumnMetadata(System.Reflection.PropertyInfo property, string columnName, string sqliteType, bool isPrimaryKey, bool autoIncrement, bool isNullable, string defaultValue, bool hasIndex, bool isUniqueIndex, string indexName)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `property` | `System.Reflection.PropertyInfo` | - |
| `columnName` | `string` | - |
| `sqliteType` | `string` | - |
| `isPrimaryKey` | `bool` | - |
| `autoIncrement` | `bool` | - |
| `isNullable` | `bool` | - |
| `defaultValue` | `string?` | - |
| `hasIndex` | `bool` | - |
| `isUniqueIndex` | `bool` | - |
| `indexName` | `string?` | - |

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### &#x20;AutoIncrement

Gets whether the primary key auto-increments.

#### Syntax

```csharp theme={"dark"}
public bool AutoIncrement { get; }
```

#### Property Value

Type: `bool`

### &#x20;ColumnName

Gets the column name in the database.

#### Syntax

```csharp theme={"dark"}
public string ColumnName { get; }
```

#### Property Value

Type: `string`

### &#x20;DefaultValue

Gets the default value for the column, or null if none.

#### Syntax

```csharp theme={"dark"}
public string DefaultValue { get; }
```

#### Property Value

Type: `string?`

### &#x20;HasIndex

Gets whether this column has an index.

#### Syntax

```csharp theme={"dark"}
public bool HasIndex { get; }
```

#### Property Value

Type: `bool`

### &#x20;IndexName

Gets the index name, if any.

#### Syntax

```csharp theme={"dark"}
public string IndexName { get; }
```

#### Property Value

Type: `string?`

### &#x20;IsNullable

Gets whether the column allows NULL values.

#### Syntax

```csharp theme={"dark"}
public bool IsNullable { get; }
```

#### Property Value

Type: `bool`

### &#x20;IsPrimaryKey

Gets whether this column is the primary key.

#### Syntax

```csharp theme={"dark"}
public bool IsPrimaryKey { get; }
```

#### Property Value

Type: `bool`

### &#x20;IsUniqueIndex

Gets whether the index is unique.

#### Syntax

```csharp theme={"dark"}
public bool IsUniqueIndex { get; }
```

#### Property Value

Type: `bool`

### &#x20;Property

Gets the property info for this column.

#### Syntax

```csharp theme={"dark"}
public System.Reflection.PropertyInfo Property { get; }
```

#### Property Value

Type: `System.Reflection.PropertyInfo`

### &#x20;SqliteType

Gets the SQLite type for this column.

#### Syntax

```csharp theme={"dark"}
public string SqliteType { get; }
```

#### Property Value

Type: `string`

## Methods

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;GetValue

Gets the value of this column from an entity instance.

#### Syntax

```csharp theme={"dark"}
public object GetValue(object entity)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `entity` | `object` | The entity instance. |

#### Returns

Type: `object?`
The column value.

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;SetValue

Sets the value of this column on an entity instance.

#### Syntax

```csharp theme={"dark"}
public void SetValue(object entity, object value)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `entity` | `object` | The entity instance. |
| `value` | `object?` | The value to set. |

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`


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