# Class NpgsqlTypeLoadingOptionsBuilder

Namespace
  Npgsql

Assembly
  Npgsql.dll

Options builder for configuring Npgsql type loading.

    public sealed class NpgsqlTypeLoadingOptionsBuilder

Inheritance
  object
  NpgsqlTypeLoadingOptionsBuilder

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.ReferenceEquals(object, object)
  object.ToString()

## Methods

### EnableTableCompositesLoading(bool)

Enable loading table composite type definitions, and not just free-standing composite types.

    public NpgsqlTypeLoadingOptionsBuilder EnableTableCompositesLoading(bool enable = true)

#### Parameters

`enable` bool

#### Returns

NpgsqlTypeLoadingOptionsBuilder

### EnableTypeLoading(bool)

Enable loading of types, when disabled Npgsql falls back to a small, builtin, set of known types and type ids.

    public NpgsqlTypeLoadingOptionsBuilder EnableTypeLoading(bool enable = true)

#### Parameters

`enable` bool

#### Returns

NpgsqlTypeLoadingOptionsBuilder

### SetTypeLoadingSchemas(params IEnumerable<string>?)

Set the schemas to load types from, this can be used to reduce the work done during type loading.

    public NpgsqlTypeLoadingOptionsBuilder SetTypeLoadingSchemas(params IEnumerable<string>? schemas)

#### Parameters

`schemas` IEnumerable<string>

  Schemas to load types from.

#### Returns

NpgsqlTypeLoadingOptionsBuilder

#### Remarks

Npgsql will always load types from the following schemas: pg_catalog, information_schema, pg_toast. Any user-defined types (typcategory 'U') will also be loaded regardless of their schema.