Table of Contents

Class EntityConfigurationBuilder<T>

Namespace
JD.Domain.Configuration
Assembly
JD.Domain.Configuration.dll

Fluent builder for constructing entity configurations.

public sealed class EntityConfigurationBuilder<T> where T : class

Type Parameters

T

The entity type.

Inheritance
EntityConfigurationBuilder<T>
Inherited Members

Methods

HasIndex(params string[])

Configures an index on the entity.

public IndexBuilder<T> HasIndex(params string[] propertyNames)

Parameters

propertyNames string[]

The property names to include in the index.

Returns

IndexBuilder<T>

An index builder for further configuration.

ToTable(string, string?)

Configures the table name for the entity.

public EntityConfigurationBuilder<T> ToTable(string tableName, string? schemaName = null)

Parameters

tableName string

The table name.

schemaName string

The optional schema name.

Returns

EntityConfigurationBuilder<T>

The configuration builder for chaining.

WithMetadata(string, object?)

Adds metadata to the configuration.

public EntityConfigurationBuilder<T> WithMetadata(string key, object? value)

Parameters

key string

The metadata key.

value object

The metadata value.

Returns

EntityConfigurationBuilder<T>

The configuration builder for chaining.