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
TThe 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
propertyNamesstring[]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
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
Returns
- EntityConfigurationBuilder<T>
The configuration builder for chaining.