mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-01-31 09:12:56 -05:00
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);
|
|
}
|
|
}
|
|
} |