19 lines
459 B
C#
19 lines
459 B
C#
using IRaCIS.Core.Domain.Models;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
|
|
namespace IRaCIS.Core.Infra.EFCore.EntityConfigration
|
|
{
|
|
public class ReadModuleConfigration : IEntityTypeConfiguration<ReadModule>
|
|
{
|
|
|
|
|
|
public void Configure(EntityTypeBuilder<ReadModule> builder)
|
|
{
|
|
|
|
builder.HasOne(t => t.SubjectVisit).WithMany(t => t.ReadModuleList);
|
|
}
|
|
}
|
|
}
|