14 lines
404 B
C#
14 lines
404 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace DataLayer.Configurations
|
|
{
|
|
internal class CategoryConfig : IEntityTypeConfiguration<Category>
|
|
{
|
|
public void Configure(EntityTypeBuilder<Category> entity)
|
|
{
|
|
entity.HasKey(c => c.CategoryId);
|
|
entity.HasIndex(c => c.AudibleCategoryId);
|
|
}
|
|
}
|
|
} |