17 lines
470 B
C#
17 lines
470 B
C#
using IRaCIS.Core.Domain.Models;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
|
|
namespace IRaCIS.Core.Infra.EFCore.EntityConfigration
|
|
{
|
|
public class SubjectVisitConfigration : IEntityTypeConfiguration<SubjectVisit>
|
|
{
|
|
public void Configure(EntityTypeBuilder<SubjectVisit> builder)
|
|
{
|
|
|
|
builder.HasOne(s => s.Subject).WithMany(sv => sv.SubjectVisitList);
|
|
}
|
|
}
|
|
}
|