Interface IEntityTypeBuilder<TEntity>
Builder for fluent configuration of entity.
Inherited Members
Namespace: Kros.KORM.Metadata
Assembly: Kros.KORM.dll
Syntax
public interface IEntityTypeBuilder<TEntity> : INamedEntityTypeBuilder<TEntity>, IEntityTypeConvertersBuilder<TEntity>, IEntityTypePropertyBuilder<TEntity> where TEntity : class
Type Parameters
Name | Description |
---|---|
TEntity | Type of entity. In general it is a class representing table in database. |
Methods
HasTableName(String)
Configures table name in databse for entity. If table name is not explicitly configured, the name of
TEntity
is used.
Declaration
INamedEntityTypeBuilder<TEntity> HasTableName(string tableName)
Parameters
Type | Name | Description |
---|---|---|
System.String | tableName | Database table name. |
Returns
Type | Description |
---|---|
INamedEntityTypeBuilder<TEntity> | Returns builder for additional configuration of the entity. |